Skip to content

Commit 6b61bd0

Browse files
authored
Fix/time zone issue evoting (#323)
* fix: evoting timezone issue * chore: remove log
1 parent 25bc868 commit 6b61bd0

File tree

1 file changed

+0
-17
lines changed
  • platforms/eVoting/src/app/(app)/create

1 file changed

+0
-17
lines changed

platforms/eVoting/src/app/(app)/create/page.tsx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -135,23 +135,6 @@ export default function CreatePoll() {
135135
const localDate = new Date(data.deadline);
136136
// Convert to UTC ISO string
137137
utcDeadline = localDate.toISOString();
138-
139-
// Show user the timezone conversion for transparency
140-
const localTime = localDate.toLocaleString();
141-
const utcTime = new Date(utcDeadline).toLocaleString('en-US', { timeZone: 'UTC' });
142-
143-
console.log('🕐 Deadline conversion:', {
144-
local: data.deadline,
145-
localTime,
146-
utc: utcDeadline,
147-
utcTime
148-
});
149-
150-
toast({
151-
title: "Timezone Converted",
152-
description: `Local: ${localTime} → UTC: ${utcTime}`,
153-
duration: 3000,
154-
});
155138
}
156139

157140
await pollApi.createPoll({

0 commit comments

Comments
 (0)