beagle r3418 - in trunk/beagle: BeagleClient Util libbeagle/beagle



Author: dbera
Date: 2007-02-11 21:37:12 +0000 (Sun, 11 Feb 2007)
New Revision: 3418
ViewCVS link: http://svn.gnome.org/viewcvs/beagle?rev=3418&view=rev

Modified:
   trunk/beagle/BeagleClient/QueryPart.cs
   trunk/beagle/BeagleClient/Versioned.cs
   trunk/beagle/Util/DateTimeUtil.cs
   trunk/beagle/libbeagle/beagle/beagle-timestamp.c
Log:
FAQ 1. My application uses datetimes from different sources. I also have to store it on disk.
*      Always convert any datetime to UTC and use it in that form for internal usage. UTC is a good general framework.
FAQ 2. My application is a client server app that needs to send and receive datetimes.
*      XmlSerializer assumes localtime by default when deserialing. Hence, either change time to localtime before serializing or send a string representation of the UTC time and re-construct the correct time at the other end. The timezone part of the serialized timestamp does not mean anything useful and should be ignored completely.

Beagle does 1. Beagle should have done 2 but everytime the datetime serialization problems were avoided using other fixes. This patch sends the datetime in its string representation. Also instead of printing the timezone in the output of beagle-query, print the datetime kind. As I said, the timezone does not say anything useful.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]