Recently, I had to debug an error caused by a Javascript condition:
The problem with utcOffset
param is that i can be a 0
value.
Unfortunatley, there is no better way to solve this than using the following condition:
This way a 0
value will be passing the condition.