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
zulutosec cannot convert some future times(e.g. '401231235959Z') correctly.
zulutosec uses ~ for cutting off after the decimal point.
Bitwise not (~ ) converts integer with more than 32 bits into a 32-bit signed integer.
So, '401231235959Z'(Unix time is 2240611199000, more than 32 bits) will be shotened by bitwise not operator and be coverted incorrectly.
zulutosec cannot convert some future times(e.g. '401231235959Z') correctly.
zulutosec uses
~
for cutting off after the decimal point.Bitwise not (
~
) converts integer with more than 32 bits into a 32-bit signed integer.So, '401231235959Z'(Unix time is
2240611199000
, more than 32 bits) will be shotened by bitwise not operator and be coverted incorrectly.Bitwise NOT (~) - JavaScript | MDN
Sample code is following.
Thanks.
The text was updated successfully, but these errors were encountered: