Giter Site home page Giter Site logo

Comments (5)

Grokzen avatar Grokzen commented on August 21, 2024

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.

asaglimbeni avatar asaglimbeni commented on August 21, 2024

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.

Grokzen avatar Grokzen commented on August 21, 2024

@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.

asaglimbeni avatar asaglimbeni commented on August 21, 2024

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.

bemall avatar bemall commented on August 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.