mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-05-31 10:39:23 +02:00
Lots more tests
This commit is contained in:
parent
5ef83a7ba0
commit
e8688fed4b
6 changed files with 186 additions and 98 deletions
util
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue