mirror of
https://github.com/teamhanko/hanko.git
synced 2025-11-01 22:28:27 +08:00
Time.Now() uses local time but timezone information is lost on persisting because pop timestamp columns are without timezone. On retrieval from the DB the original timestamp is not wholly recoverable and leads to erroneous comparisons (e.g. passcode expiry check). This commit changes that by explicitly using UTC both on save and comparison.