Skip to content

Commit

Permalink
Add tests for invalid timezone offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
arp242 committed May 23, 2024
1 parent c6a78f1 commit b4ddb63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/invalid/datetime/offset-overflow-hour.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Hour must be 00-24
d = 1985-06-18 17:04:07+25:00
3 changes: 3 additions & 0 deletions tests/invalid/datetime/offset-overflow-minute.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Minute must be 00-59; we allow 60 too because some people do write offsets of
# 60 minutes
d = 1985-06-18 17:04:07+12:61

0 comments on commit b4ddb63

Please sign in to comment.