From 410f64488a73d3bfbcb8cb6fd46a71a610f5e15d Mon Sep 17 00:00:00 2001 From: Matt Johnson-Pint Date: Wed, 15 Jan 2025 15:25:02 -0800 Subject: [PATCH 1/2] fix: remove fallback to default time zone --- runtime/hostfunctions/system.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/hostfunctions/system.go b/runtime/hostfunctions/system.go index 8c213aa47..f391b6e27 100644 --- a/runtime/hostfunctions/system.go +++ b/runtime/hostfunctions/system.go @@ -61,11 +61,11 @@ func GetTimeInZone(ctx context.Context, tz *string) *string { loc = timezones.GetLocation(tz) } - if loc != nil { - now = now.In(loc) + if loc == nil { + return nil } - s := now.Format(time.RFC3339Nano) + s := now.In(loc).Format(time.RFC3339Nano) return &s } From e04520aaa8652a50ee42b502508140c21d29d0cc Mon Sep 17 00:00:00 2001 From: Matt Johnson-Pint Date: Wed, 15 Jan 2025 15:26:14 -0800 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 068fd8676..906fe08f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,11 @@ ## UNRELEASED -- chore: update api-explorer to react 19 [#700](https://github.com/hypermodeinc/modus/pull/700) - - fix: resolve warning in `deserializeRawMap` [#692](https://github.com/hypermodeinc/modus/pull/692) - fix: add json serialization support for neo4j sdk types [#699](https://github.com/hypermodeinc/modus/pull/699) +- chore: update api-explorer to react 19 [#700](https://github.com/hypermodeinc/modus/pull/700) +- fix: remove fallback to default time zone [#706](https://github.com/hypermodeinc/modus/pull/706) ## 2025-01-09 - CLI 0.16.6