Skip to content

Commit

Permalink
馃悰 achievements: fix initialization of timezone setting
Browse files Browse the repository at this point in the history
  • Loading branch information
foosel committed May 13, 2024
1 parent ea15c30 commit e185475
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/octoprint/plugins/achievements/static/js/achievements.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,11 @@ $(function () {
self.dummy.notifySubscribers();
};

self.onStartupComplete = () => {
// copy initial timezone setting
self.timezoneSetting(self.settings.settings.plugins.achievements.timezone());
};

self.onEventSettingsUpdated = (payload) => {
if (
self.settings.settings.plugins.achievements.timezone() !==
Expand Down

0 comments on commit e185475

Please sign in to comment.