-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timezone without format #62
Comments
Hi, I've managed to solve this via Django localization https://docs.djangoproject.com/en/1.7/topics/i18n/formatting/ by overriding DATETIME_INPUT_FORMATS. With this solution you will benefit from automatic conversions to Django datetime objects when processing forms POST data with this widget in the form. I'm not sure if it would work with your approach. |
So I have nothing to do with maintaining this but I think it would be a pretty good idea! |
I think the idea is that if you enable I've not used this in a bit, but what would be the advantage of having |
I think #68 is related? Format not working when L10N is enabled? |
I have committed a quick pull request which resolves this issue - #93 . It seems that translations do not take effect unless usel10n is set, but there may be cases where translations are required and a specific format is also needed. |
Is it possible to use L10N and yet to specify a custom format?
It does not seem so at the time ( https://github.com/asaglimbeni/django-datetime-widget/blob/master/datetimewidget/widgets.py#L193 ).
Would you accept a simple patch that enables this?
The text was updated successfully, but these errors were encountered: