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
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
However, the "Z" format specifier always uses the locale timezone offset – i.e., ignores the timezone specified to the filter – so in my browser this evaluates to:
2012-01-01T00:00:00-0500
The text was updated successfully, but these errors were encountered:
A hackish way to fix this might be to override the prototype getTimezoneOffset after adjusting the date to UTC.
if(timezone&&timezone==='UTC'){date=newDate(date.getTime());date.setMinutes(date.getMinutes()+date.getTimezoneOffset());date.getTimezoneOffset=function(){return0;};// <- like this}
Alternatively, dateFilter needs to special case the Z format specifier.
I would expect the following expression to be a no-op:
However, the "Z" format specifier always uses the locale timezone offset – i.e., ignores the timezone specified to the filter – so in my browser this evaluates to:
The text was updated successfully, but these errors were encountered: