[GH-ISSUE #428] Bugfix: Inconsistent timezones in output #287

Closed
opened 2026-03-01 14:42:07 +03:00 by kerem · 3 comments
Owner

Originally created by @pigmonkey on GitHub (Aug 7, 2020).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/428

I installed v0.4.11 and added new URLs from my Pinboard export:

$ archivebox add < ~/library/conf/pinboard.json
[i] [2020-08-07 10:13:29] ArchiveBox v0.4.11: archivebox add < /dev/stdin
    > /home/pigmonkey/tmp/bookmarks

[+] [2020-08-07 17:15:07] Adding 860 links to index (crawl depth=0)...
    > Saved verbatim input to sources/1596820507-import.txt
    > Parsed 860 URLs from input (Generic JSON)
    > Found 5 new URLs not already in index

...

The first timestamp (10:13:29) is in my system's localtime. The second timestamp (17:57:07) is not, in fact, 7 hours later. It is 2 minutes later, but in UTC.

I don't have a strong preference for which of the two timezones ArchiveBox should use in its output, but I do have a strong preference for consistency. Indicating the offset for whichever timezone is used would also be great.

Originally created by @pigmonkey on GitHub (Aug 7, 2020). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/428 I installed v0.4.11 and added new URLs from my Pinboard export: ``` $ archivebox add < ~/library/conf/pinboard.json [i] [2020-08-07 10:13:29] ArchiveBox v0.4.11: archivebox add < /dev/stdin > /home/pigmonkey/tmp/bookmarks [+] [2020-08-07 17:15:07] Adding 860 links to index (crawl depth=0)... > Saved verbatim input to sources/1596820507-import.txt > Parsed 860 URLs from input (Generic JSON) > Found 5 new URLs not already in index ... ``` The first timestamp (10:13:29) is in my system's localtime. The second timestamp (17:57:07) is not, in fact, 7 hours later. It is 2 minutes later, but in UTC. I don't have a strong preference for which of the two timezones ArchiveBox should use in its output, but I do have a strong preference for consistency. Indicating the offset for whichever timezone is used would also be great.
Author
Owner

@pirate commented on GitHub (Aug 11, 2020):

@pigmonkey try on the latest master version I think we've fixed it to be UTC everywhere.

git checkout master
git pull
pip install .
cd path/to/data/dir
archivebox add https://example.com/#test2
<!-- gh-comment-id:672018344 --> @pirate commented on GitHub (Aug 11, 2020): @pigmonkey try on the latest master version I think we've fixed it to be UTC everywhere. ```bash git checkout master git pull pip install . cd path/to/data/dir archivebox add https://example.com/#test2 ```
Author
Owner

@pirate commented on GitHub (Aug 14, 2020):

If you still see any issues comment back and I'll reopen this.

<!-- gh-comment-id:674130995 --> @pirate commented on GitHub (Aug 14, 2020): If you still see any issues comment back and I'll reopen this.
Author
Owner

@pigmonkey commented on GitHub (Aug 16, 2020):

Yes, that fixed it. The timestamps are all UTC now in v0.4.14. Thanks!

<!-- gh-comment-id:674470237 --> @pigmonkey commented on GitHub (Aug 16, 2020): Yes, that fixed it. The timestamps are all UTC now in v0.4.14. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#287
No description provided.