From 7af6c99638f8e2b5123dda9def1bc789803a2a37 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 6 Feb 2020 19:52:16 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index d94420c4..c17e875b 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -48,13 +48,26 @@ CURRENT TODOs SHELL / NAV / MENUS / LAYOUT TODO: LOCALIZATION - - ACTIONS - - SEEDER at server, use timezone offset to generate widget dates so it is easy to see if locale stuff is working in client, currently it's out by 8 hours from now + - TODO ACTIONS + - Move localization methods to the LOCALE object and then call it from the filters - Browser languages in locale: - some functions are better called with the full array of browser languages because sometimes it needs to use a fallback - Only the date picker seems to have an issue with handling the full array of languages, the javascript number and date formatters do not and expect a full range - Need a manual override setting for locale tag "en-US" etc as some browsers seem to be shitty at it + + - TODO: get time zone from browser with user override option + - use browser default unless overridden + + - How to handle dates and times + - All dates stored in UTC format at server and transmitted that way + - Change to timestamp? + - CLIENT DISPLAY: + - Client uses the built in browser tolocale* methods to display dates to user both in their desired format and desired time zone, i.e. NO HOUR ADJUSTMENTS USED + -- Proper way to definitevely display a date in desired time zone: DATE.toLocaleString('en-GB', { timeZone: 'UTC', dateStyle: "short",timeStyle: "short", hour12: false }) + + + - CURRENCY code, need to be able to set currency as a user option, no way to deduce it except maybe a default through deduction of locale - AM PM or 24 hour time sb a setting in locale