Closed anderagakura closed 2 years ago
FWIW, the community tclib DateEncoder uses Date.getTime()
which expresses values in UTC, according to docs
getTime() always uses UTC for time representation.
For example, a client browser in one timezone, getTime() will be the same as a client browser in any other timezone.
So I don't think users of the community tclib will need to make any special date-related code changes. We can change the lib to a) set Created
to the LastUpdated
value when reading existing strings and b) the converse when writing. Will look into it after holidays.
cc: @shortaflip
While we keep using years, months and days, this update clears hours, minutes and seconds to 0.