Opened 19 years ago
Closed 19 years ago
#188 closed defect (fixed)
Can't login in admin, when TIME_ZONE set to 'Europe/Riga' in myproject.settings.main
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | contrib.admin | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
TIME_ZONE='Europe/Riga'
Admin error traceback after submitting login form:
There's been an error: Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py", line 60, in get_response response = middleware_method(request, callback, param_dict) File "/usr/lib/python2.4/site-packages/django/middleware/admin.py", line 49, in process_view user = users.get_object(username__exact=username) File "/usr/lib/python2.4/site-packages/django/core/meta.py", line 87, in _curried return args[0](*(args[1:]+moreargs), **dict(kwargs.items() + morekwargs.items())) File "/usr/lib/python2.4/site-packages/django/core/meta.py", line 1032, in function_get_object obj_list = function_get_list(opts, klass, **kwargs) File "/usr/lib/python2.4/site-packages/django/core/meta.py", line 1059, in function_get_list for row in cursor.fetchall(): File "/usr/lib/python2.4/site-packages/django/core/db/typecasts.py", line 30, in typecast_timestamp int(times[0]), int(times[1]), int(seconds.split('-')[0]), ValueError: invalid literal for int(): 35+03
TIME_ZONE='America/Chicago' works fine though, as well as setting 'Europe/Riga' timezone in TZ environment variable.
Change History (3)
comment:1 by , 19 years ago
comment:3 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
see also http://code.djangoproject.com/ticket/219