New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Format the given time from UTC/GMT to ET (including EST & EDT) #318
Comments
@sabareeshmurthy What did you use in your jslt file? The built-in parse-time function currently uses Java SimpleDateFormat, not the newer JSR-310 DateTimeFormatter. See BuiltinFunctions.java I'm considering creating a PR to switch this, because we also have a use-case for this, but maybe we should just add our own Custom Function for this? |
|
@greyfairer If you want to make a PR for it might be interested in that. The thread safety isn't an issue, because we are not caching and reusing the I guess a bigger issue might be that existing format strings would change behaviour. We'd have to look into that before switching over. |
Need to transform UTC/GMT time to Eastern Time which should follow day light saving too. Tried using format-time function with time zone as ET/EDT but it shows as invalid time zone. EST works but it always gives GMT-5 even during day light saving days.
Do we have any library to convert given date time to Eastern Time including day light saving?
Excepted input -> output:
[Daylight Saving Date]
2023-11-03T13:36:04:535Z -> 2023-11-03T09:36:04:535-04:00
[Non-Daylight Saving Date]
2023-11-10T10:33:37:929Z -> 2023-11-10T05:33:37:929-05:00
The text was updated successfully, but these errors were encountered: