Closed (fixed)
Project:
Date
Version:
6.x-2.x-dev
Component:
Date API
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2008 at 18:51 UTC
Updated:
23 Jul 2008 at 10:56 UTC
In the function set_db_timezone of the file date_api_sql.inc, postgres is not being detected correctly; the wrong boolean operator is being used in when checking the version of mysql so that all versions of postgres are also caught by that case.
I've attached a short patch which changes the boolean to the correct && from || and adjusts the syntax used for setting the timezone in postgres to SET TIME ZONE INTERVAL '$offset' HOURS TO MINUTES to match the postgres manual.
| Comment | File | Size | Author |
|---|---|---|---|
| date_psql.patch | 1.02 KB | vonster |
Comments
Comment #1
vonster commentedOops, wrong project.
Moving to Date API project
Comment #2
vonster commentedComment #3
gddPatch applies with offset, does exactly what its supposed to.
Comment #4
karens commentedFixed. Thanks!
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.