You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the documentation, the API states timezone offset is a valid parameter for the formatInTimeZone() function.:
In this case there are two relevant pieces of information:
a fixed moment in time in the form of a timestamp, UTC or ISO date string, and
the time zone descriptor, usually an offset or IANA time zone name (e.g. America/New_York).
There are no examples in the documentation showing a usecase of timezone offset.
I've tried converting the timeset time value to hours with the same result. I assume the unit of measurement is in milliseconds as the function getTimezoneOffset() returns the offset in milliseconds.
What is the proper format for timezone offset? Why isn't the result of result of the utility function compatible with the main function?
The text was updated successfully, but these errors were encountered:
toduyemi
changed the title
RangeError: Invalid time value- formatInTimeZone() Timezone offset value returning error. How to use this function with offset?
RangeError: Invalid time value - formatInTimeZone() Timezone offset value returning error. How to use this function with offset?
Apr 2, 2024
In the documentation, the API states timezone offset is a valid parameter for the
formatInTimeZone()
function.:I have an API query that returns data related to:
What I've tried:
There are no examples in the documentation showing a usecase of timezone offset.
I've tried converting the timeset time value to hours with the same result. I assume the unit of measurement is in milliseconds as the function
getTimezoneOffset()
returns the offset in milliseconds.What is the proper format for timezone offset? Why isn't the result of result of the utility function compatible with the main function?
The text was updated successfully, but these errors were encountered: