libical r641 - in branches/gnome-2-22: . src/libical
- From: jedywang svn gnome org
- To: svn-commits-list gnome org
- Subject: libical r641 - in branches/gnome-2-22: . src/libical
- Date: Mon, 17 Mar 2008 04:05:48 +0000 (GMT)
Author: jedywang
Date: Mon Mar 17 04:05:48 2008
New Revision: 641
URL: http://svn.gnome.org/viewvc/libical?rev=641&view=rev
Log:
2008-03-17 Wang Xin <jedy wang sun com>
* src/libical/icaltimezone.c: Handle WET, MET and EET timezones
in zone_sun.tab on Solaris.
Modified:
branches/gnome-2-22/ChangeLog
branches/gnome-2-22/src/libical/icaltimezone.c
Modified: branches/gnome-2-22/src/libical/icaltimezone.c
==============================================================================
--- branches/gnome-2-22/src/libical/icaltimezone.c (original)
+++ branches/gnome-2-22/src/libical/icaltimezone.c Mon Mar 17 04:05:48 2008
@@ -1567,7 +1567,21 @@
len = sptr - loc;
location = strncpy (location, loc, len);
location [len] = '\0';
-
+
+#if defined(sun) && defined(__SVR4)
+ /* Handle EET, MET and WET in zone_sun.tab. */
+ if (!strcmp (location, "Europe/")) {
+ while (*sptr != '\t')
+ sptr++;
+ loc = ++sptr;
+ while (!isspace (*sptr))
+ sptr++;
+ len = sptr - loc;
+ location = strncpy (location, loc, len);
+ location [len] = '\0';
+ }
+#endif
+
lon = lat + 1;
while (*lon != '+' && *lon != '-')
lon++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]