Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions client/src/pages/admin/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ const AdminSettings = () => {

alert('Clock reset!');
setClockResetPopup(false);
fetchClock();
};

const toggleSyncClock = async () => {
Expand Down
4 changes: 2 additions & 2 deletions server/router/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ func ResetClock(ctx *gin.Context) {
state.Clock.Mutex.Lock()
defer state.Clock.Mutex.Unlock()

// Unpause the clock
state.Clock.State.Resume()
// Reset the clock
state.Clock.State.Reset()

// Backup
err := database.UpdateClockConditional(state.Db, ctx, &state.Clock.State)
Expand Down