GNOME Bugzilla – Bug 795080
Some dates reset to 01/01/1970
Last modified: 2018-06-30 00:07:44 UTC
When entering or modifying a transaction, for some dates the date gets reverted to 01/01/1970 Example: * Begin entering a new transaction for date 26/10/2014 and tab out of the field * Notice the date has changed to 01/01/1970 This happened on another date in 2015, but I didn't to note it down.
What's your timezone, and was there a DST transition on 26 October 2014?
My current timezone is British Summer Time and (according to Google) DST for the UK was between 30 March 2014 and 26 October 2014
Thanks. Turns out that at least in Apple's TZInfo file that transition happened at 23:00 BST, making midnight ambiguous as to whether it's DST or not. That caused the time constructor to throw, returning a 0 time. I added a workaround in the catch block to try again 3 hours later then correct the result. That seems to work.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=795080. Please update any external references or bookmarks.