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
I looked for the best I could, but could not find any information about the keepTime parameter of the
moment.tz(...,keepTime)¯¯¯¯¯¯¯¯¯¯
function.
I think I understand what the parameter is doing :
When the keepTime parameter is missing or false, the time is only interpreted to the specified timezone without changing the internal value. When the keepTime parameter is true, the internal time is adjusted so that the time is created at the local time of this timezone instead of transposing from gtm.
Sorry It's poorly written but this is the best I can do. Maybe someone could explain it better ? Anyway, a minimum of documentation on that would have been very helpful.
If keepTime=true, we only set the time zone info, causing the actual moment to change, but the face value of the time is kept.
If keepTime=false, the time is converted to the given timezone, so the displayed date and time may change, but the result refers to the exact same moment before calling tz.
Hi,
I looked for the best I could, but could not find any information about the
keepTime
parameter of thefunction.
I think I understand what the parameter is doing :
Sorry It's poorly written but this is the best I can do. Maybe someone could explain it better ? Anyway, a minimum of documentation on that would have been very helpful.
Refs :
The text was updated successfully, but these errors were encountered: