Question: TimeStamp of files in Galaxy (UTC)
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?


ADD COMMENTlink modified 3.4 years ago by jmchilton1.1k • written 3.5 years ago by danielfortin86110
gravatar for jmchilton
3.4 years ago by
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 - It looks like the time field Galaxy uses by default is called asctime - which in turn is documented here In turn - it looks like this would respect adding another field called datefmt -

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?

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?


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


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