summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/kdepim/kdepim-3.5.4-korganizer-use-sys-timezone.patch
diff options
context:
space:
mode:
Diffstat (limited to 'mandriva/2010.2/kdepim/kdepim-3.5.4-korganizer-use-sys-timezone.patch')
-rw-r--r--mandriva/2010.2/kdepim/kdepim-3.5.4-korganizer-use-sys-timezone.patch36
1 files changed, 0 insertions, 36 deletions
diff --git a/mandriva/2010.2/kdepim/kdepim-3.5.4-korganizer-use-sys-timezone.patch b/mandriva/2010.2/kdepim/kdepim-3.5.4-korganizer-use-sys-timezone.patch
deleted file mode 100644
index 8ed14fd3a..000000000
--- a/mandriva/2010.2/kdepim/kdepim-3.5.4-korganizer-use-sys-timezone.patch
+++ /dev/null
@@ -1,36 +0,0 @@
---- kdepim-3.5.4/korganizer/koprefsdialog.cpp-- 2006-07-27 19:50:56.000000000 +0200
-+++ kdepim-3.5.4/korganizer/koprefsdialog.cpp 2006-07-27 19:58:12.000000000 +0200
-@@ -193,13 +193,27 @@ class KOPrefsDialogTime : public KPrefsM
- pclose(f);
- }
- #else
-- if((f = fopen("/etc/timezone", "r")) != NULL) {
-- // get the currently set timezone
-- fgets(tempstring, 100, f);
-- tempstring[strlen(tempstring) - 1] = '\0';
-- sCurrentlySet = TQString(tempstring);
-- fclose(f);
-+ TQFile file( "/etc/sysconfig/clock" );
-+ if( file.exists())
-+ {
-+ TQString line;
-+ if ( file.open( IO_ReadOnly ) ) {
-+ TQTextStream stream( &file );
-+ while ( !stream.atEnd() )
-+ {
-+ line = stream.readLine(); // line of text excluding '\n'
-+ if( line.contains("ZONE")!=0)
-+ {
-+ line = line.remove("ZONE=");
-+ break;
-+ }
-+ }
-+ file.close();
-+ }
-+ if(!line.isEmpty())
-+ sCurrentlySet = line;
- }
-+
- #endif // !USE_SOLARIS
-
- mTimeZoneCombo->insertItem(i18n("[No selection]"));