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
consider two different time zones and bellow code: moment.from("1401/01/27", "fa", "YYYY-MM-DD")
based on the time we are in the day and time zone, this code can provide different answers (different epoch because of different time zone)
how can I get the result JUST in "+04:30"?
it seems that there is no timezone conversion provided for "moment.from" function.
for example I can use moment(x).utcOffset("+04:30") and it will show time in my preferred time zone but this can't be done before converting times using moment.from
The text was updated successfully, but these errors were encountered:
yasin459
changed the title
2/1/1400 can be interpereted different in different time zones
27/1/1400 can be interpereted different in different time zones
Apr 9, 2022
I don't know there is a work around for this or not,
but I know from function doesn't do what you expect and it would be great if you create a PR and add this parameter to the from function
consider two different time zones and bellow code:
moment.from("1401/01/27", "fa", "YYYY-MM-DD")
based on the time we are in the day and time zone, this code can provide different answers (different epoch because of different time zone)
how can I get the result JUST in "+04:30"?
it seems that there is no timezone conversion provided for "moment.from" function.
for example I can use
moment(x).utcOffset("+04:30")
and it will show time in my preferred time zone but this can't be done before converting times usingmoment.from
The text was updated successfully, but these errors were encountered: