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.
Mailing list reports problems with the date editor refusing to set yesterday for UK users. Since BST ended yesterday the problem seems not to be fixed after all.
The first try dealt with only the struct tm case. The other GncDateTime constructor, GncDateTime(GncDate&, GncDateTime::DayPart) was at fault in the case reported on the mailing list. That's fixed with 0e72361.