Incorrect Date Time in Let's Encrypt Log

Hi Guys,

Trying to get certbot automated, and came to realise that all of the is time stamping in UTC, but that hardly helps anyone if their local time is in a different format!

# Time stamp in log
2018-02-21 22:45:11,934:INFO:certbot.renewal:Cert not yet due for renewal

date
Thursday 22 February  09:46:13 AEDT 2018

date -u
Wednesday 21 February  22:46:26 UTC 2018

I’ve had a search and can’t find why this is the case, or if it is possible to change this.

*Fixed as per this merge https://github.com/certbot/certbot/pull/5607#pullrequestreview-98671199*

Looks hardcoded to me - https://github.com/certbot/certbot/blob/ea3b78e3c9ff11da1d6919f2c5c36d53623512d3/certbot/log.py#L33

Does seem a bit silly (at least the TZ should be obvious), perhaps open an issue for it: https://github.com/certbot/certbot/issues

2 Likes

Thanks @_az, glad I’m not the only one who thinks so.
I can follow through and add an issue. edit: Link to issue

I’ll leave the discussion open for other input.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.