Skip to content

Commit d8443e3

Browse files
Use ISO date strings for comparison
Co-authored-by: Gero Posmyk-Leinemann <[email protected]>
1 parent b59dcd0 commit d8443e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/server/src/workspace/workspace-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ export class WorkspaceService {
568568
daysToLive = daysToLive * 2;
569569
}
570570
deletionEligibilityTime.setDate(deletionEligibilityTime.getDate() + daysToLive);
571-
if (new Date() > deletionEligibilityTime) {
571+
if (new Date().toISOString() > deletionEligibilityTime.toISOString()) {
572572
log.warn(
573573
{ userId, workspaceId, instanceId: instance?.id },
574574
"[updateDeletionEligibilityTime] Prevented moving deletion eligibility time to the past",

0 commit comments

Comments
 (0)