Question: TimeStamp of files in Galaxy (UTC)
0
gravatar for danielfortin86
3.5 years ago by
United States
danielfortin86110 wrote:

Is it possible to change how timestamps are dealt with? It seems that all of the timestamps in the logs etc... are UTC. I've tried changing the "pretty_datetime_format" field in galaxy.ini but this hasn't seemed to work. When I issue the command "date" at the command-line I get the correct local time. Can anybody give me a clue as to how to set galaxy so that all times are also local?

Thanks

ADD COMMENTlink modified 3.4 years ago by jmchilton1.1k • written 3.5 years ago by danielfortin86110
0
gravatar for jmchilton
3.4 years ago by
jmchilton1.1k
United States
jmchilton1.1k wrote:

My understanding is Galaxy's logging is customizable by placing a logger section in the config/galaxy.ini file. More details on the logger section and subsequent sections are documented in Python's standard library documentation here - https://docs.python.org/2/library/logging.config.html#logging-config-fileformat. It looks like the time field Galaxy uses by default is called asctime - which in turn is documented here https://docs.python.org/2/library/logging.html. In turn - it looks like this would respect adding another field called datefmt - http://stackoverflow.com/a/6127057.

Hope this helps.

 

ADD COMMENTlink written 3.4 years ago by jmchilton1.1k

Thanks for the response. Unfortunately, my knowledge of python and galaxy internals isn't too solid. Can you be a little more explicit in what you're suggesting? I'm assuming this requires adding something like the following to the galaxy.ini file?

[formatter_simpleFormatter]
format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
datefmt=%Y-%m-%d %H:%M:%S

I tried doing this, but without any success. Can you provide any additional insight?

Thanks!

ADD REPLYlink written 3.4 years ago by danielfortin86110
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 180 users visited in the last hour