Skip to content

Commit 5146ab5

Browse files
committed
Update expr To Preserve Timezone In date
When parsing a string into a Time using the optional timezone parameter to `date`, set the location of the Time to the timezone's location so that Format uses that timezone. See expr-lang/expr#633
1 parent e6da394 commit 5146ab5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

go.mod

+3
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ require (
4141
golang.org/x/sys v0.18.0 // indirect
4242
gopkg.in/yaml.v3 v3.0.1 // indirect
4343
)
44+
45+
// Can be removed after https://github.com/expr-lang/expr/pull/633 is resolved
46+
replace github.com/expr-lang/expr v1.16.0 => github.com/cwarden/expr v0.0.0-20240423160201-50d02973b2f2

0 commit comments

Comments
 (0)