JohnEarnest/Decker

Bug in epoch-based timestamp parsing when month is not January

Closed this issue · 1 comments

Hey, thanks for making Decker, it's a lot of fun!

I may have found a bug in the date parsing function. This is on MacOS using version 1.43 of the Decker desktop application. When running this code in the listener (for example):

"%e" parse "2024-08-01T00:00:00Z"

I expect to get the output 1722470400, but instead I get 1704074580, corresponding to the date and time 2024-01-01T00:00:00Z. More generally, it seems that "%e" parse always ignores the month and instead returns the epoch timestamp corresponding to the given date if the month were set to January.

This patch has been incorporated into the 1.44 release.