6.0.0-beta1
7/17/25

[#11695] Kolab backend: Datetime fields from/to Kolab XML are not in UTC
Summary Kolab backend: Datetime fields from/to Kolab XML are not in UTC
Queue Kronolith
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester thomas.jarosch (at) intra2net (dot) com
Created 11/13/2012 (4629 days ago)
Due
Updated 11/27/2012 (4615 days ago)
Assigned 11/15/2012 (4627 days ago)
Resolved 11/23/2012 (4619 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/27/2012 05:03:46 PM Thomas Jarosch Comment #5 Reply to this comment
Working fine, thanks Jan.

11/23/2012 02:12:53 PM Jan Schneider State ⇒ Resolved
 
11/23/2012 02:12:46 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (master):

commit 8164faef6116300dc4ed6f0e32c160df8ba8354b
Author: Jan Schneider <jan@horde.org>
Date:   Fri Nov 23 15:12:20 2012 +0100

     Convert to local timezone (Bug #11695).

  kronolith/docs/CHANGES        |    1 +
  kronolith/lib/Event/Kolab.php |    3 +++
  kronolith/package.xml         |    2 ++
  3 files changed, 6 insertions(+), 0 deletions(-)

http://git.horde.org/horde-git/-/commit/8164faef6116300dc4ed6f0e32c160df8ba8354b
11/15/2012 01:19:33 PM Thomas Jarosch Comment #3
State ⇒ Assigned
Reply to this comment
-Almost- working:

When you edit an event, the start date will jump one hour backwards.

11/14/2012 06:38:31 PM Jan Schneider State ⇒ Resolved
Assigned to Jan Schneider
 
11/14/2012 06:07:13 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit 49b313c53e51bdaf75e52e9915498d73a49bfe33
Author: Jan Schneider <jan@horde.org>
Date:   Wed Nov 14 19:05:20 2012 +0100

     [jan] Deprecate timezone parameters, always write UTC datetime 
values (Bug #11695).

  .../Kolab_Format/lib/Horde/Kolab/Format/Date.php   |   82 
++++++++------------
  .../lib/Horde/Kolab/Format/Xml/Type/Date.php       |   11 +---
  .../lib/Horde/Kolab/Format/Xml/Type/Date/V1.php    |   10 +--
  .../lib/Horde/Kolab/Format/Xml/Type/DateTime.php   |   15 +---
  .../Horde/Kolab/Format/Xml/Type/DateTime/V1.php    |   10 +--
  .../Kolab/Format/Xml/Type/RecurrenceRange.php      |   15 +----
  framework/Kolab_Format/package.xml                 |    4 +-
  .../test/Horde/Kolab/Format/Unit/DateTest.php      |    8 --
  .../Kolab/Format/Unit/Xml/Type/DateTimeTest.php    |   18 +----
  9 files changed, 45 insertions(+), 128 deletions(-)

http://git.horde.org/horde-git/-/commit/49b313c53e51bdaf75e52e9915498d73a49bfe33
11/13/2012 09:38:36 AM Thomas Jarosch Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Kolab backend: Datetime fields from/to Kolab XML are not in UTC
Queue ⇒ Kronolith
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Hi,

according to the Kolab format specification, all datetime fields 
should be stored as UTC:

--------------------
Datetime YYYY-MM-DDThh:mm:ssZ. The T is the literal char, and always 
needs to be between the
date and the time. The Z is also the literal char, and shows that the 
datetime is UTC. The format does
not allow for other time settings than UTC. An example could be 
2004-05-04T15:00:00Z.
--------------------

Right now kronolith stores localtime. This results in interoperability 
problems with other Kolab clients :)
kronolith of H4 works correctly.

Cheers,
Thomas

Saved Queries