Add timezone to profile settings page
- Users will have two options to select a timezone.
- UTC and browser offset timezone are the two options for the application.
- date-fns and date-fns-tz is used for date and time manipulations because:-
- The package size of library is smaller.
- It allows for importing functions to work with the native date object
rather than having to create a moment instance that carries a larger payload.
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com>
Change-Id: I581803f230f501c0d34d0b53e7c2d89e8466ee60
diff --git a/src/locales/en-US.json b/src/locales/en-US.json
index 023efa5..63c7536 100644
--- a/src/locales/en-US.json
+++ b/src/locales/en-US.json
@@ -367,14 +367,22 @@
"solConsole": "Serial over LAN console"
}
},
- "profileSettings": {
+ "pageProfileSettings": {
+ "browserOffset": "Browser offset (%{timezone})",
"changePassword": "Change password",
"confirmPassword": "Confirm new password",
+ "defaultUTC": "Default (UTC)",
"newPassword": "New password",
"newPassLabelTextInfo": "Password must be between %{min} - %{max} characters",
"passwordsDoNotMatch": "Passwords do not match",
"profileInfoTitle": "Profile information",
- "username": "Username"
+ "timezone": "Timezone",
+ "timezoneDisplay": "Timezone display preference",
+ "timezoneDisplayDesc": "Select how time is displayed throughout the application",
+ "username": "Username",
+ "toast": {
+ "successSaveSettings": "Successfully saved account settings."
+ }
},
"pageManagePowerUsage": {
"description": "Set a power cap to keep power consumption at or below the specified value in watts",