Bug 6093 - Timezone fix breaking Toaster GUI in Fedora 18
Summary: Timezone fix breaking Toaster GUI in Fedora 18
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: unspecified
Hardware: All Multiple
: Medium+ normal
Target Milestone: 1.6 M5
Assignee: Alexandru Damian
QA Contact: Mihail Stanciu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-04-01 14:22 UTC by Belen Barros Pena
Modified: 2014-07-24 14:32 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Belen Barros Pena 2014-04-01 14:22:47 UTC
It looks like this patch

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=8f791ce59d5fb0b0bc502838c44bb597f80d3979

is preventing the Toaster GUI to start in Fedora (at least in 18). This is the full trace:

Environment:


Request Method: GET
Request URL: http://localhost:8000/gui/builds/?count=10&orderby=completed_on%3A-&page=1

Django Version: 1.5
Python Version: 2.7.3
Installed Applications:
('django.contrib.staticfiles',
 'django.contrib.humanize',
 'orm',
 'toastermain',
 'toastergui',
 'bldviewer',
 'south')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  115.                         response = callback(request, *callback_args, **callback_kwargs)
File "/home/yocto/poky/bitbake/lib/toaster/toastergui/views.py" in builds
  304.                                          ("Today's builds" , 'started_on__gte:'+timezone.now().strftime("%Y-%m-%d"), queryset_with_search.filter(started_on__gte=timezone.now().strftime("%Y-%m-%d")).count()),
File "/usr/lib/python2.7/site-packages/django/db/models/query.py" in filter
  667.         return self._filter_or_exclude(False, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/django/db/models/query.py" in _filter_or_exclude
  685.             clone.query.add_q(Q(*args, **kwargs))
File "/usr/lib/python2.7/site-packages/django/db/models/sql/query.py" in add_q
  1259.                             can_reuse=used_aliases, force_having=force_having)
File "/usr/lib/python2.7/site-packages/django/db/models/sql/query.py" in add_filter
  1190.                 connector)
File "/usr/lib/python2.7/site-packages/django/db/models/sql/where.py" in add
  71.             value = obj.prepare(lookup_type, value)
File "/usr/lib/python2.7/site-packages/django/db/models/sql/where.py" in prepare
  339.             return self.field.get_prep_lookup(lookup_type, value)
File "/usr/lib/python2.7/site-packages/django/db/models/fields/__init__.py" in get_prep_lookup
  730.         return super(DateField, self).get_prep_lookup(lookup_type, value)
File "/usr/lib/python2.7/site-packages/django/db/models/fields/__init__.py" in get_prep_lookup
  322.             return self.get_prep_value(value)
File "/usr/lib/python2.7/site-packages/django/db/models/fields/__init__.py" in get_prep_value
  828.             default_timezone = timezone.get_default_timezone()
File "/usr/lib/python2.7/site-packages/django/utils/timezone.py" in get_default_timezone
  112.             _localtime = pytz.timezone(settings.TIME_ZONE)
File "/usr/lib/python2.7/site-packages/pytz/__init__.py" in timezone
  180.             raise UnknownTimeZoneError(zone)

Exception Type: UnknownTimeZoneError at /gui/builds/
Exception Value: 'posix/Europe/Belfast'
Comment 1 Alexandru Damian 2014-04-02 08:15:24 UTC
Patch in review.
Comment 3 Mihail Stanciu 2014-07-24 14:32:49 UTC
Verified on Fedora 20.