telegram-history-dump
telegram-history-dump copied to clipboard
[PATCH] Wrong timestamps in HTML output
While the timestamps in json files seem to be correct, the timestamps in HTML files are not: The minutes are wrong.
The culprit is in formatters/html.rb
:
date_message = date.strftime('%a %Y-%m-%d, %H:%I')
if $config['formatters']['html']['use_utc_time']
date_message = date.utc.strftime('%a %Y-%m-%d, %H:%I') + " UTC"
Just replace %I
with %M
in both cases, and the HTML timestamps are fine.
+1
Why don't you submit a pull request?
On Sat, 2018-03-24, at 07:50:13 (+0100), Munto wrote:
Why don't you submit a pull request?
Too few resources (currently) for BTS bureaucracy, sorry. If I hadn't created this account years ago (when I had more resources), I would not even have reported this bug.
Hope someone else can help out ...
Thanks a ton mjk-gh, as you can see above I just made a pull request that addresses this issue, it is now merged
Pull request