Changes in tools/config.py [41e871f:571239a] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/config.py

    r41e871f r571239a  
    363363def create_output(mkname, mcname, config, rules):
    364364        "Create output configuration"
    365 
    366         timestamp_unix = int(time.time())
    367         timestamp = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(timestamp_unix))
     365       
     366        timestamp = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
    368367       
    369368        sys.stderr.write("Fetching current revision identifier ... ")
     
    424423                outmc.write('#define REVISION %s\n' % revision)
    425424                defs += ' "-DREVISION=%s"' % revision
    426        
    427         outmk.write('TIMESTAMP_UNIX = %d\n' % timestamp_unix)
    428         outmc.write('#define TIMESTAMP_UNIX %d\n' % timestamp_unix)
    429         defs += ' "-DTIMESTAMP_UNIX=%d"\n' % timestamp_unix
    430425       
    431426        outmk.write('TIMESTAMP = %s\n' % timestamp)
Note: See TracChangeset for help on using the changeset viewer.