To support different time zones, an approach based on ISO8601 is implemented.
1. Storage – all data in the storage (database) will be saved using UTC – that means:
- Device will send the data directly in UTC
- Or “2004-10-19 10:23:54+02” And the storage will convert and store UTC (i.e. YYYY-MM-DD HH:MM:SS+OFFSET)
2. Retrieve – when data are retrieved (GET)
- if on the Web Service header is set up the time zone offset then all data are returned for specified time zone
- if no header is present then all data are returned on UTC