telegram-history-dump icon indicating copy to clipboard operation
telegram-history-dump copied to clipboard

[PATCH] Wrong timestamps in HTML output

Open mjk-gh opened this issue 7 years ago • 5 comments

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.

mjk-gh avatar Jan 27 '18 18:01 mjk-gh

+1

Mercotui avatar Jan 27 '18 19:01 Mercotui

Why don't you submit a pull request?

Munto avatar Mar 24 '18 06:03 Munto

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 ...

mjk-gh avatar Mar 24 '18 20:03 mjk-gh

Thanks a ton mjk-gh, as you can see above I just made a pull request that addresses this issue, it is now merged

Phylliida avatar May 18 '18 20:05 Phylliida

Pull request

Arunm0111986 avatar May 29 '22 21:05 Arunm0111986