deepjyoti30 / startpage

A minimal starpage for Chrome and Firefox
MIT License
625 stars 85 forks source link

Can you add an option to change the time zone? #18

Closed ghost closed 4 years ago

ghost commented 4 years ago

You should modify the function 'updateTime ()' and add a new variable in the json.

this.zone = jsonData["timeZone"] /*"Europe/Madrid"*/
var timeZone = new Date().toLocaleString("en-US", {timeZone: zone});
currentDate = new Date(timeZone);
deepjyoti30 commented 4 years ago

@Walkator I'll take that into consideration. I'm also currently thinking of adding an option to set the preferred language so this will surely go along with that.

ghost commented 4 years ago

Ok, this would be great.

reesericci commented 4 years ago

Yeah this ties in with issue #13

reesericci commented 4 years ago

@deepjyoti30 dd this get added to manually override the time zone?

deepjyoti30 commented 4 years ago

@reesericci Did you check ffe3e6da5c0e78ea7857126d1c9f1ca5ca505d3a

The time zone can be changed from the config.

deepjyoti30 commented 4 years ago

Added in the last release