Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit a94be14

Browse files
fix: remove fallback to default time zone (#706)
1 parent bc955cc commit a94be14

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
## UNRELEASED
44

5-
- chore: update api-explorer to react 19 [#700](https://github.com/hypermodeinc/modus/pull/700)
6-
75
- fix: resolve warning in `deserializeRawMap` [#692](https://github.com/hypermodeinc/modus/pull/692)
86
- fix: add json serialization support for neo4j sdk types
97
[#699](https://github.com/hypermodeinc/modus/pull/699)
8+
- chore: update api-explorer to react 19 [#700](https://github.com/hypermodeinc/modus/pull/700)
9+
- fix: remove fallback to default time zone [#706](https://github.com/hypermodeinc/modus/pull/706)
1010

1111
## 2025-01-09 - CLI 0.16.6
1212

runtime/hostfunctions/system.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ func GetTimeInZone(ctx context.Context, tz *string) *string {
6161
loc = timezones.GetLocation(tz)
6262
}
6363

64-
if loc != nil {
65-
now = now.In(loc)
64+
if loc == nil {
65+
return nil
6666
}
6767

68-
s := now.Format(time.RFC3339Nano)
68+
s := now.In(loc).Format(time.RFC3339Nano)
6969
return &s
7070
}
7171

0 commit comments

Comments
 (0)