Files
raven/devdocs/specs/core-locale-currency-numbers-time-and-dates.txt
2019-12-11 23:54:26 +00:00

23 lines
966 B
Plaintext

TIME (DATE AND TIME handling)
SERVER RESPONSIBILITIES FOR DATES AND TIME ZONES:
- User object has a timezone offset field which is user selectable
- stores all times and dates in UTC in DB
- expects dates coming from client to be in UTC
- Does take into account timezone offset when FILTERING a LIST for sending to the client that has a relative date filter like [NEXTMONTH]
- This is the only place on the server where the user's time zone offset is used for anything
CLIENT RESPONSIBILITIES FOR DATES AND TIME ZONES
- Send all datetime fields on records to the server in UTC
- Displayed dates and times are adjusted to user timezoneoffset
CURRENCY
- Displayed and accepted based on UserOption currency symbol
NUMBER
- Displayed and accepted based on userOptions numeric format (needs work)
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat