Only reset dates for poll that haven’t been edited

This commit is contained in:
Luke Vella 2022-04-13 11:45:19 +01:00
parent 033c01148b
commit e669c0dc11

View file

@ -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