InteractiveAdvertisingBureau / GDPR-Transparency-and-Consent-Framework

Technical specifications for IAB Europe Transparency and Consent Framework that will help the digital advertising industry interpret and comply with EU rules on data protection and privacy - notably the General Data Protection Regulation (GDPR) that comes into effect on May 25, 2018.
860 stars 360 forks source link

Reduce timestamp granularity #306

Closed anderagakura closed 2 years ago

anderagakura commented 2 years ago

While we keep using years, months and days, this update clears hours, minutes and seconds to 0.

dmdabbs commented 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