Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
algebraic-dev committed Sep 20, 2024
1 parent 18feda1 commit b213fc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/lean/run/timeFormats.lean
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def localTm : Second.Offset := 1723730627
/--
This PlainDate is relative to the local time.
-/
def PlainDate : PlainDateTime := Timestamp.toPlainDateTime (Timestamp.ofSecondsSinceUnixEpoch localTm)
def PlainDate : PlainDateTime := Timestamp.toPlainDateTimeAssumingUTC (Timestamp.ofSecondsSinceUnixEpoch localTm)

def dateBR₁ := DateTime.ofLocalDateTime PlainDate brTZ
def dateJP₁ := DateTime.ofLocalDateTime PlainDate jpTZ
Expand Down
6 changes: 3 additions & 3 deletions tests/lean/run/timeTzifParse.lean
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ info: 91
info: 3
-/
#guard_msgs in
#eval code.v1.PlainTimeTypes.size
#eval code.v1.localTimeTypes.size

/--
info: 0
Expand All @@ -59,13 +59,13 @@ info: 0
#eval code.v1.utLocalIndicators.size

/--
info: some (date% 1969-12-30T21:00:00,000000000-03:00)
info: some (zoned("1969-12-30T21:00:00.000000000-03:00"))
-/
#guard_msgs in
#eval ZonedDateTime.ofZoneRules (Timestamp.ofSecondsSinceUnixEpoch 0) rules

/--
info: some (date% 2012-12-10T00:35:47,000000000-02:00)
info: some (zoned("2012-12-10T00:35:47.000000000-02:00"))
-/
#guard_msgs in
#eval ZonedDateTime.ofZoneRules (Timestamp.ofSecondsSinceUnixEpoch 1355106947) rules

0 comments on commit b213fc7

Please sign in to comment.