diff options
| author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2013-11-01 15:58:32 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-04 09:36:22 +0000 |
| commit | af32d95f3beeb678fb59436445237efe53a36726 (patch) | |
| tree | 632720a72f62b8800419e99a07797199ab00a18d | |
| parent | 0087db625718fd16cf8edcaac1f6cdd43332e9a9 (diff) | |
| download | poky-af32d95f3beeb678fb59436445237efe53a36726.tar.gz | |
bitbake: toaster: fix timezone settings
This patch fixes an issue where, if not defined,
the timezone defaults to 'America/Chicago'.
The solution is to set the timezone to current computer's
timezone.
[YOCTO #5186]
(Bitbake rev: a4102b549f04a9b52cdcd318bf511a18ab48067d)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | bitbake/lib/toaster/toastermain/settings.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastermain/settings.py b/bitbake/lib/toaster/toastermain/settings.py index dd1e25c087..9435087f17 100644 --- a/bitbake/lib/toaster/toastermain/settings.py +++ b/bitbake/lib/toaster/toastermain/settings.py | |||
| @@ -48,7 +48,8 @@ ALLOWED_HOSTS = [] | |||
| 48 | # In a Windows environment this must be set to your system time zone. | 48 | # In a Windows environment this must be set to your system time zone. |
| 49 | 49 | ||
| 50 | # Always use local computer's time zone | 50 | # Always use local computer's time zone |
| 51 | #TIME_ZONE = '' | 51 | import time |
| 52 | TIME_ZONE = time.tzname[0] | ||
| 52 | 53 | ||
| 53 | # Language code for this installation. All choices can be found here: | 54 | # Language code for this installation. All choices can be found here: |
| 54 | # http://www.i18nguy.com/unicode/language-identifiers.html | 55 | # http://www.i18nguy.com/unicode/language-identifiers.html |
| @@ -65,7 +66,7 @@ USE_I18N = True | |||
| 65 | USE_L10N = True | 66 | USE_L10N = True |
| 66 | 67 | ||
| 67 | # If you set this to False, Django will not use timezone-aware datetimes. | 68 | # If you set this to False, Django will not use timezone-aware datetimes. |
| 68 | USE_TZ = False | 69 | USE_TZ = True |
| 69 | 70 | ||
| 70 | # Absolute filesystem path to the directory that will hold user-uploaded files. | 71 | # Absolute filesystem path to the directory that will hold user-uploaded files. |
| 71 | # Example: "/var/www/example.com/media/" | 72 | # Example: "/var/www/example.com/media/" |
