Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
shalei committed Feb 14, 2024
1 parent 3e676e6 commit e8f0bd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def test_strptime():
m = Morrow.strptime("20-01-2023 15:49:10", "%d-%m-%Y %H:%M:%S", TimeZone.local())
assert_equal(str(m), "2023-01-20T15:49:10.000000+08:00")

m = Morrow.strptime("2023-10-18 15:49:10 +0800", "%Y-%m-%d %H:%M:%S %z")
m = Morrow.strptime("2023-10-18 15:49:10 +08:00", "%Y-%m-%d %H:%M:%S %z")
assert_equal(str(m), "2023-10-18T15:49:10.000000+08:00")

m = Morrow.strptime("2023-10-18 15:49:10", "%Y-%m-%d %H:%M:%S", "+09:00")
Expand Down

0 comments on commit e8f0bd1

Please sign in to comment.