nextcloud / polls

🗳️ Polls app for Nextcloud
https://apps.nextcloud.com/apps/polls
GNU Affero General Public License v3.0
255 stars 73 forks source link

Add bulk import for date polls #2371

Open PhrozenByte opened 2 years ago

PhrozenByte commented 2 years ago

Describe the goal you'd like to achieve

As a poll owner, I want to be able to do a bulk import for date polls.

Describe possible solutions

See #2339

Additional context

Since implementing a locale-aware date string parser is incredibly hard, I'd recommend you not to try. You better force ISO 8601 dates. If you do so, date string parsing is as simple as calling moment(string, moment.ISO_8601) (don't use moment(string), as it's a wrapper around the discouraged Date.parse() function).

dartcafe commented 2 years ago

It's on the list, but needs additional validation. Thanks for adding the issue.