From 57771fd2324762164c5664dec0609fbca548d627 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Sat, 23 May 2015 16:57:45 +0100 Subject: [PATCH] Set default date formats --- PyRIGS/formats/__init__.py | 0 PyRIGS/formats/en/__init__.py | 0 PyRIGS/formats/en/formats.py | 5 +++++ PyRIGS/settings.py | 2 ++ 4 files changed, 7 insertions(+) create mode 100644 PyRIGS/formats/__init__.py create mode 100644 PyRIGS/formats/en/__init__.py create mode 100644 PyRIGS/formats/en/formats.py diff --git a/PyRIGS/formats/__init__.py b/PyRIGS/formats/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/PyRIGS/formats/en/__init__.py b/PyRIGS/formats/en/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/PyRIGS/formats/en/formats.py b/PyRIGS/formats/en/formats.py new file mode 100644 index 00000000..f10454b6 --- /dev/null +++ b/PyRIGS/formats/en/formats.py @@ -0,0 +1,5 @@ +from __future__ import unicode_literals + +DATETIME_FORMAT = ('d/m/Y H:i') +DATE_FORMAT = ('d/m/Y') +TIME_FORMAT = ('H:i') \ No newline at end of file diff --git a/PyRIGS/settings.py b/PyRIGS/settings.py index d2f19d15..3206a1dc 100644 --- a/PyRIGS/settings.py +++ b/PyRIGS/settings.py @@ -176,6 +176,8 @@ LANGUAGE_CODE = 'en-gb' TIME_ZONE = 'UTC' +FORMAT_MODULE_PATH = 'PyRIGS.formats' + USE_I18N = True USE_L10N = True