Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
Only reset dates for poll that haven’t been edited
Luke Vellae669c0dc1143
diff --git a/pages/api/poll/[urlId]/index.ts b/pages/api/poll/[urlId]/index.tsindex 0d90b43cc..cfc24b459 100644--- a/pages/api/poll/[urlId]/index.ts+++ b/pages/api/poll/[urlId]/index.ts@@ -52,7 +52,7 @@ export default withLink(if (poll.legacy &&// has converted options without timezone- poll.options.some(({ value }) => value.indexOf("T") === -1)+ poll.options.every(({ value }) => value.indexOf("T") === -1)) {// We need to reset the dates for polls that lost their timezone data because some users// of the old version will end up seeing the wrong dates