Fedora Linux Support Community & Resources Center
  #1  
Old 23rd September 2005, 07:11 AM
JPEM Offline
Registered User
 
Join Date: Aug 2005
Posts: 8
timeconfig in FC4

Hi!

I have a program in c/c++ which uses timeconfig to change the timezone. For exampe:

bash# timeconfig "America/New York"

It works ok in RedHat 8 but when I use FC4, the timezone window appear. why is this happen? Is timeconfig does not take parameter anymore?

Does anyone have suggestion on how can I change the timezone in c/c++?

Thanks! in Advance
Reply With Quote
  #2  
Old 23rd September 2005, 11:34 AM
brahms Offline
Registered User
 
Join Date: Aug 2004
Posts: 434
Code:
~$ cat /usr/sbin/timeconfig
#!/bin/sh

/usr/bin/python2 /usr/share/system-config-date/timeconfig.py
So no, it doesn't pass any parameters to the python script. Probably reading through the python script is a good place to start.

Note that it imports the timezoneBackend module, so read this too:

/usr/share/system-config-date/timezoneBackend.py

Hint: /etc/sysconfig/clock
__________________
:cool:

Last edited by brahms; 23rd September 2005 at 11:38 AM.
Reply With Quote
  #3  
Old 23rd September 2005, 11:47 AM
JPEM Offline
Registered User
 
Join Date: Aug 2005
Posts: 8
Ok thanks! 4 the info

Does anyone have suggestion on how can I change the timezone? I'm using c/c++ programming.
Reply With Quote
Reply

Tags
fc4, timeconfig

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Current GMT-time: 04:25 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat