Open jozuenoon opened 5 months ago
@jozuenoon -- this bug is fixed in the fork of this package https://pkg.go.dev/github.com/itlightning/dateparse (we're trying to maintain this package) -- I verified that your example test case already passes in the forked package.
When running the below test time zone is not consistent:
I guess this is due to this line (below) using
time.Local
instead of theloc
variable. If anyone can guide me if this is somehow intentional or can be changed (I can create a merge request).https://github.com/araddon/dateparse/blob/6b43995a97dee4b2c7fc0bdff8e124da9f31a57e/parseany.go#L253