moov-io / paygate

A RESTful API enabling electronic payments to be submitted and received without a deep understanding payment file specification
http://moov.io
Apache License 2.0
129 stars 31 forks source link

Using timezone in maybeTick #635

Closed theFong closed 3 years ago

theFong commented 3 years ago

The maybeTick func which determines if a cuttoff should happen does not use the configured timezone. This results in incorrect behavior when the timezone and cuttoff time specified straddles a day since IsWeekend and IsBankingDay would use an incorrect date.

Related https://github.com/moov-io/base/pull/148