mirror of
https://github.com/multipleof4/ntfy.git
synced 2026-10-14 23:47:55 +00:00
Lots more tests
This commit is contained in:
+1
-1
@@ -73,7 +73,7 @@ func parseUnixTime(s string, now time.Time) (time.Time, error) {
|
||||
} else if int64(t) < now.Unix() {
|
||||
return time.Time{}, errUnparsableTime
|
||||
}
|
||||
return time.Unix(int64(t), 0), nil
|
||||
return time.Unix(int64(t), 0).UTC(), nil
|
||||
}
|
||||
|
||||
func parseNaturalTime(s string, now time.Time) (time.Time, error) {
|
||||
|
||||
Reference in New Issue
Block a user