themoonsheep / moonsheep

Moonsheep digitizes huge, messy paper and PDF archives through crowdsourcing and cutting edge technology.
http://moonsheep.org
GNU Affero General Public License v3.0
9 stars 3 forks source link

Create widget for DateInput #96

Open KrzysztofMadejski opened 6 years ago

KrzysztofMadejski commented 6 years ago

Problem we run into with Django's DateField is that it sends Python date object, which pybossa-client don't know how to handle (because JSON doesn't standardize dates).

We were thinking about implementing in pybossa-client date serialization as proposed on SO, but clients in general may want different serialization. Do you want timezone or not, client should dictate that.

I'm thinking the best solution would be to override Django DateField to_python method and consciously convert it to string (using SO solution).

KrzysztofMadejski commented 6 years ago

Ref #48

KrzysztofMadejski commented 5 years ago

Moving away from PyBossa #116 , but make sure date serialization is not an issue.