From 8c33efa2ddfbf5516465e0c1c29c4cbb2dfc42ad Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 18 Oct 2006 06:12:12 +0000 Subject: [PATCH] r1265: Timezones with half hours are not saved because the timezone is considered an INT not a FLOAT --- docs/schema_changes.sql | 1 + includes/api_user.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/schema_changes.sql b/docs/schema_changes.sql index 9de1d44..ec911e5 100644 --- a/docs/schema_changes.sql +++ b/docs/schema_changes.sql @@ -1,2 +1,3 @@ ## SVN $Id$ +ALTER TABLE user CHANGE timezone timezone float(4) NOT NULL DEFAULT 0; diff --git a/includes/api_user.php b/includes/api_user.php index aa91f77..f265a90 100644 --- a/includes/api_user.php +++ b/includes/api_user.php @@ -51,7 +51,7 @@ class UserAPI extends API 'showemail' => array(TYPE_BOOL, REQ_NO), 'showcolors' => array(TYPE_BOOL, REQ_NO), 'languageid' => array(TYPE_UINT, REQ_NO), - 'timezone' => array(TYPE_INT, REQ_NO), + 'timezone' => array(TYPE_FLOAT,REQ_NO), 'usedst' => array(TYPE_BOOL, REQ_NO), 'hidestatuses' => array(TYPE_STR, REQ_NO, ':self'), 'defaultsortkey' => array(TYPE_STR, REQ_NO, ':self'), -- 2.22.5