diff --git a/CHANGELOG.md b/CHANGELOG.md index 1011cad..7749da3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ ### v1.7.4 (TBA) -- [WIP] Added option to set custom greetings and date ([#103](https://github.com/pawelmalak/flame/issues/103)) +- Added option to set custom greetings and date ([#103](https://github.com/pawelmalak/flame/issues/103)) - Added iOS "Add to homescreen" icon ([#131](https://github.com/pawelmalak/flame/issues/131)) - Added 3 new themes diff --git a/client/src/components/Home/Header/functions/getDateTime.ts b/client/src/components/Home/Header/functions/getDateTime.ts index 9f1d601..db79c69 100644 --- a/client/src/components/Home/Header/functions/getDateTime.ts +++ b/client/src/components/Home/Header/functions/getDateTime.ts @@ -1,5 +1,5 @@ export const getDateTime = (): string => { - const days = [ + const days = localStorage.getItem('daySchema')?.split(';') || [ 'Sunday', 'Monday', 'Tuesday', @@ -8,7 +8,8 @@ export const getDateTime = (): string => { 'Friday', 'Saturday', ]; - const months = [ + + const months = localStorage.getItem('monthSchema')?.split(';') || [ 'January', 'February', 'March', diff --git a/client/src/components/Settings/OtherSettings/OtherSettings.tsx b/client/src/components/Settings/OtherSettings/OtherSettings.tsx index b076735..c5b45ae 100644 --- a/client/src/components/Settings/OtherSettings/OtherSettings.tsx +++ b/client/src/components/Settings/OtherSettings/OtherSettings.tsx @@ -81,6 +81,7 @@ const OtherSettings = (props: ComponentProps): JSX.Element => {