Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14th June 2012, 05:02 PM
GregJo Offline
Registered User
 
Join Date: Nov 2007
Posts: 24
windows_7chrome
Where is timeconfig? Can't set timezone using CLI in F17.

The documentation from this page:
http://docs.fedoraproject.org/en-US/...ezone-x86.html
states "To run the Time and Date Properties Tool as a text-based application, use the command timeconfig."

I can run the GUI version with system-config-date. However, I am unable to run timeconfig. Is the documentation wrong? What is the preferred way of setting the timezone from the commandline in F17?
Reply With Quote
  #2  
Old 14th June 2012, 05:10 PM
bob's Avatar
bob Offline
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,213
linuxfirefox
Re: Where is timeconfig? Can't set timezone using CLI in F17.

system-config-date is the correct command. Timeconfig (as a command) hasn't been around for many versions, in fact I can't remember it ever being used.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.

Last edited by bob; 14th June 2012 at 05:15 PM.
Reply With Quote
  #3  
Old 14th June 2012, 05:48 PM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,126
linuxchrome
Re: Where is timeconfig? Can't set timezone using CLI in F17.

You can specify your time zone using the date command. See "man date". Supposedly, you can also set the environment variable "TZ", though I'm not sure what the proper syntax for that is.
Reply With Quote
  #4  
Old 14th June 2012, 05:59 PM
Yellowman
Guest
 
Posts: n/a
linuxfirefox
Re: Where is timeconfig? Can't set timezone using CLI in F17.

Add your comments here

https://bugzilla.redhat.com/show_bug.cgi?id=563384
Reply With Quote
  #5  
Old 14th June 2012, 06:59 PM
GregJo Offline
Registered User
 
Join Date: Nov 2007
Posts: 24
windows_7chrome
Re: Where is timeconfig? Can't set timezone using CLI in F17.

Thanks, Yellowman. Glad to know I can still read documentation, and it's the documentation that is at fault this time. I added myself as a listener to the referenced bug, as Leigh Scott already pointed out the problem is still in F17.

Using the tzselect command, I end up with the following:

Code:
You can make this change permanent for yourself by appending the line
        TZ='America/Denver'; export TZ
to the file '.profile' in your home directory; then log out and log in again.

Here is that TZ value again, this time on standard output so that you
can use the /bin/tzselect command in shell scripts:
America/Denver
However, that isn't "sticky"...as in, it's tied to the user, not the system.
Other threads such as this http://www.cyberciti.biz/faq/howto-l...e-tz-variable/ say to link /usr/share/zoneinfo/US/Mountain to /etc/localtime. Comments on the thread say to just copy the file, not symlink it. Confusing!

Anyway, I went ahead and copied /usr/share/zoneinfo/US/Mountain to /etc/localtime. Seems to have done the trick, and it survived a reboot (as I would have expected).
Reply With Quote
  #6  
Old 14th June 2012, 07:24 PM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,449
linuxfirefox
Re: Where is timeconfig? Can't set timezone using CLI in F17.

I thought you also needed to put the timezone string into /etc/sysconfig/clock

That would be a system wide setting
Reply With Quote
  #7  
Old 14th June 2012, 10:16 PM
DBelton's Avatar
DBelton Online
Administrator
 
Join Date: Aug 2009
Posts: 6,612
linuxfirefox
Re: Where is timeconfig? Can't set timezone using CLI in F17.

Just a quick look around, I am wondering what uses /etc/setuptool.d?

There is a /etc/setuptool.d/99timeconfig file and it's contents?

/etc/setuptool.d/99timeconfig:
Code:
/usr/sbin/timeconfig|Timezone configuration
However, there is no /usr/sbin/timeconfig file, so that config file points to nowhere.
Reply With Quote
Reply

Tags
cli, f17, set, timeconfig, timezone

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Timezone is off sidebrnz Suggestions & Feedback 1 20th February 2010 05:43 AM
Can't set my TimeZone in FC4 rolandpish Using Fedora 5 9th January 2006 04:59 PM
timeconfig in FC4 JPEM Programming & Packaging 2 23rd September 2005 11:47 AM


Current GMT-time: 04:13 (Wednesday, 22-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