Pregunta

Why are these two fireDate different?

The date displayed in the log is wrong.

enter image description here

¿Fue útil?

Solución

The date logged to console is correct, considering that there is no time zone offset (i.e., displayed for UTC). The date displayed in the quick look popover is adjusted for India Standard Time (which is offset +5:30 from UTC).

Otros consejos

You are from INDIA I guess and india Time zone is +5.30. but in Log it showing +000 GMT right.

So if you add +5.30 in your Log Time Then You will get correct time which you can see during debugging.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top