Comments (5)
I have noticed the same thing. It renders the value but it have no effect once some datetime have been chosen.
from django-datetime-widget.
Hi,
are you sure that you didn't enable the usel10n?
If you add 'format' into options and in the same time set usel10n as True the first one is ignored.
Let me know.
from django-datetime-widget.
@asaglimbeni Installation section of the README says Set USE_L10N = True, USE_TZ = True and USE_I18N = True in settings.py
and that is what i did :] So you mean if i set it to False
it will start to use format
? Also is this in the docs that it behaves this way? If not it could be a improvment to add.
from django-datetime-widget.
It is already reported in the documentation at the end of the basc configuration:
https://github.com/asaglimbeni/django-datetime-widget#basic-configuration
the example configuration is only an example! your implementation could change depending on your needs.
from django-datetime-widget.
I have format set as 'format': 'MM dd, hh:ii P, yyyy', which results in the date and time being displayed as say "April 05, 09:30 AM 2015". This format works but I get the error "Enter a valid date/time." How can I correct this? @asaglimbeni
Also, how do I disable date and time selection such that a user is not able to select a time that is in the past or unable to select a time that is at least greater than say current time plus two hours ?
from django-datetime-widget.
Related Issues (20)
- Change icons HOT 1
- using Now as startDate HOT 1
- Duplicate ID in rendered widgets
- Time Disabled
- Use display names configured in user settings instead of usernames (if provided)
- Date format conversion to python miss many formats
- startDate and endDate Options
- Improve documentation
- Not working in Django 2.1 HOT 4
- Readme > format doesn't show available month options
- Suggestion for Django 1.8+: DurationWidget
- startDate, endDate and daysOfWeekDisabled not working HOT 2
- Back to 1899 HOT 7
- todayBtn needs to be added to boolean list HOT 1
- Add option to not style input as readonly HOT 3
- Next month, Prev month buttons not showing HOT 1
- Blackout dates, hours
- Inconsistency with boolean values HOT 1
- Multiple widgets in a single form HOT 1
- Error on Django 1.10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-datetime-widget.