ocaml-community / ISO8601.ml

Parser and printer for date-times in ISO8601
https://ocaml-community.github.io/ISO8601.ml
MIT License
28 stars 13 forks source link

Do not use gmtime with times produced with mktime. #3

Closed sagotch closed 9 years ago

sagotch commented 9 years ago

From mktime doc:

The tm argument is interpreted in the local time zone.

From gmtime doc:

Assumes UTC (Coordinated Universal Time), also known as GMT.

Note : This bug will not be anymore when #1 will be fixed.