Re: problem with a date between a form and database

2014-09-18 Thread swiesner
Timezones are hard. Is USE_TZ=True in your settings? I'd highly recommend starting on this page: https://docs.djangoproject.com/en/dev/topics/i18n/timezones/ Sid On Thursday, September 18, 2014 9:59:55 AM UTC-4, gh224391 wrote: > > hello all, > i have a form to get a date. But when i get

problem with a date between a form and database

2014-09-18 Thread gerard
hello all, i have a form to get a date. But when i get object from the database, the database is not as expected, user type "18/09/2015", but after savin, i got: 17/09/2015 22:00 here is the code: #settings.py TIME_ZONE = 'Europe/Paris' #models.py class MyEvent(models.Model): dtstart =