Fixed clock module sunrise/sunset timezone bug (#3070)

Updated sunrise/sunset times to display user-requested timezone rather
than system timezone.

Note: rebase of  #3069 against develop rather than master

Co-authored-by: Veeck <github@veeck.de>
This commit is contained in:
JakeBinney
2023-04-09 01:19:51 -06:00
committed by GitHub
parent 09f117c3d9
commit dee3cd3da7
2 changed files with 2 additions and 15 deletions

View File

@@ -152,7 +152,7 @@ const formatTime = (config, time) => {
let date = moment(time);
if (config.timezone) {
date = moment.tz(config.timezone);
date = date.tz(config.timezone);
}
if (config.timeFormat !== 24) {