jubishop / smalldemocracy

Tools for a Small Democracy.
https://smalldemocracy.com
Other
2 stars 1 forks source link

Timezone setting does not seem to work in chrome #189

Closed jubishop closed 2 years ago

jubishop commented 2 years ago

this could be related to it not working in github actions too. need to revisit this.

jubishop commented 2 years ago

ahh it's because in before_create in Poll creation it's using the raw expiration value, then after save the timezone is stripped! then the Choice is modified error shows up. boom.

jubishop commented 2 years ago

i think we need to just call getutc in before_validation() for the Poll class.