You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Invalid timezone (+2800) causing a test failure #1387
=== RUN TestBugCommentNew
bug_comment_add_test.go:17:
Error Trace: /home/build/git-bug/commands/bug/bug_comment_test.go:94
/home/build/git-bug/commands/bug/bug_comment_test.go:56
/home/build/git-bug/commands/bug/bug_comment_test.go:139
/home/build/git-bug/commands/bug/bug_comment_add_test.go:17
Error: Received unexpected error:
parsing time "Mon Apr 28 10:11:15 2025 +2800": time zone offset hour out of range
Test: TestBugCommentNew
--- FAIL: TestBugCommentNew (0.00s)
=== RUN TestBugCommentEdit
bug_comment_edit_test.go:22:
Error Trace: /home/build/git-bug/commands/bug/bug_comment_test.go:94
/home/build/git-bug/commands/bug/bug_comment_test.go:56
/home/build/git-bug/commands/bug/bug_comment_test.go:139
/home/build/git-bug/commands/bug/bug_comment_edit_test.go:22
Error: Received unexpected error:
parsing time "Mon Apr 28 10:11:15 2025 +2800": time zone offset hour out of range
Test: TestBugCommentEdit
--- FAIL: TestBugCommentEdit (0.00s)
=== RUN TestBugComment
bug_comment_test.go:24:
Error Trace: /home/build/git-bug/commands/bug/bug_comment_test.go:94
/home/build/git-bug/commands/bug/bug_comment_test.go:56
/home/build/git-bug/commands/bug/bug_comment_test.go:139
/home/build/git-bug/commands/bug/bug_comment_test.go:24
Error: Received unexpected error:
parsing time "Mon Apr 28 10:11:15 2025 +2800": time zone offset hour out of range
Test: TestBugComment
--- FAIL: TestBugComment (0.00s)
I have to admit that +2800 time zone baffles me a bit, moreover when I cannot find anywhere in the code where such time would be set. Is it something about setting TZ variable, locale, or something? Anybody any idea?
Activity
fix: use -0700 when formatting time
fix: use -0700 when formatting time (git-bug#1388)