Ticket #4590: settings.py.patch

File settings.py.patch, 1.0 KB (added by Jonas von Poser, 17 years ago)

International standard ISO 8601, date and time notation

  • django/conf/project_template/settings.py

     
    2121# although not all variations may be possible on all operating systems.
    2222# If running in a Windows environment this must be set to the same as your
    2323# system time zone.
    24 TIME_ZONE = 'America/Chicago'
     24TIME_ZONE = 'UTC'
     25
     26# International standard ISO 8601, date and time notation. Information here:
     27# http://www.w3.org/QA/Tips/iso-date
     28# http://www.cl.cam.ac.uk/~mgk25/iso-time.html
     29# http://en.wikipedia.org/wiki/ISO_8601
     30DATE_FORMAT = 'Y-m-d'
     31DATETIME_FORMAT = 'Y-m-d H:iZ'
     32#DATETIME_FORMAT = 'Y-m-d H:i:sZ'   # With seconds.
     33MONTH_DAY_FORMAT = ''               # Month-Day format isn't correct.
     34TIME_FORMAT = 'H:iZ'
     35#TIME_FORMAT = 'H:i:sZ'             # With seconds.
     36YEAR_MONTH_FORMAT = 'Y-m'
    2537
    2638# Language code for this installation. All choices can be found here:
    2739# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
Back to Top