[kaffe] CVS kaffe (jim): Fix for timezone problem.
Kaffe CVS
cvs-commits at kaffe.org
Tue Apr 13 12:37:02 PDT 2004
PatchSet 4641
Date: 2004/04/13 19:24:39
Author: jim
Branch: HEAD
Tag: (none)
Log:
Fix for timezone problem.
After the switch back to summer time, all my dates mysteriously switched
to GMT. This fix removes some obsolete system properties.
Members:
ChangeLog:1.2217->1.2218
libraries/clib/native/System.c:1.42->1.43
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2217 kaffe/ChangeLog:1.2218
--- kaffe/ChangeLog:1.2217 Tue Apr 13 16:09:23 2004
+++ kaffe/ChangeLog Tue Apr 13 19:24:39 2004
@@ -1,3 +1,9 @@
+2004-04-13 Jim Pick <jim at kaffe.org>
+
+ * libraries/clib/native/System.c:
+ Fix for timezone problem - remove obsolete system properties,
+ user.language, user.region and user.timezone.
+
2004-04-13 Guilhem Lavaux <guilhem at kaffe.org>
* kaffe/kaffevm/systems/unix-jthreads/jthread.c
Index: kaffe/libraries/clib/native/System.c
diff -u kaffe/libraries/clib/native/System.c:1.42 kaffe/libraries/clib/native/System.c:1.43
--- kaffe/libraries/clib/native/System.c:1.42 Mon Apr 12 11:40:07 2004
+++ kaffe/libraries/clib/native/System.c Tue Apr 13 19:24:40 2004
@@ -220,9 +220,6 @@
* user.name User account name
* user.home User home directory
* user.dir User's current working directory
- * user.language User's language locale code
- * user.region User's country locale code
- * user.timezone User's timezone
*
* Others:
*
@@ -330,23 +327,6 @@
setProperty(p, "user.name", "Unknown");
setProperty(p, "user.home", "Unknown");
}
-
- /* We should try to work this stuff out really - XXX */
- setProperty(p, "user.language", "EN");
- setProperty(p, "user.region", "US");
-
- /* Figure out the local time zone; fallback to GMT if we can't */
- tzone = "GMT";
-#if defined(HAVE_TM_ZONE) && defined(HAVE_LOCALTIME)
- {
- const time_t now = time(NULL);
-
- if (now != (time_t) -1) {
- tzone = (char*)localtime(&now)->tm_zone;
- }
- }
-#endif
- setProperty(p, "user.timezone", tzone);
setProperty(p, "file.encoding.pkg", "kaffe.io");
setProperty(p, "file.encoding", "Default");
More information about the kaffe
mailing list