From 896385af9e85e7f66e2d8bf4052e536320dc2d4c Mon Sep 17 00:00:00 2001 From: Prodesire Date: Thu, 8 Feb 2024 11:51:49 +0800 Subject: [PATCH] fix: fix test_strptime error on mac --- test.mojo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.mojo b/test.mojo index b3c0744..0f93cbe 100644 --- a/test.mojo +++ b/test.mojo @@ -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 +08:00", "%Y-%m-%d %H:%M:%S %") + m = Morrow.strptime("2023-10-18 15:49:10 +0800", "%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")