LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-01-2006, 01:37 PM   #1
diven
LQ Newbie
 
Registered: May 2005
Distribution: FC2/FC3
Posts: 9

Rep: Reputation: 0
Understanding Timezone in Linux


I'm trying to understand how in detail Linux handles timezones. Unfortunately the things I've found in my google searches hasn't quite been what I need. We are trying to produce an embedded system that doesn't have space for the entire tz/zoneinfo database.

The one concern one of our clients is having is wanting the system to print local timestamps onto an SD card or USB flash drive (vfat filesystems). Linux writes the timestamps as UTC, however it appears on my Fedora box it appears correctly on windows (Though could this be a result of my dual-boot system time not being UTC but local). It would also be desirable that when the timezone is changed in our gui would be reflected in the serial console as well.

I'm unfortunately still a bit of a Linux newb. Strong in some areas but pathetically weak in others.

Obviously this is a non-standard environment but I will try to explain it as best I can. Our kernel is launched by u-boot. We have use kernels 2.4.21 and 2.6.12 (modified for our platform). We are using an omap processor. We launch a script at the end of rc.sysinit that launches our gui and sets the TZ environment variable. Our gui also writes the timezone to a file and set the TZ variable with that.

I think pointing me to some resources on how the kernel, shell, graphical environment, handle timezone. Curiously I tried just putting America/Vancouver from fedora as the /etc/localtime but that didn't have an effect. Also if anyone knows how redhat correctly sets local time on vfat sd cards that would be helpful.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux OS Clock/Timezone shows the clock off by 6 hours between OS's JBailey742 Linux - Software 9 04-06-2006 11:40 PM
Understanding Linux (need some books) F1_help Linux - General 13 07-07-2004 04:24 PM
understanding linux code shahzadiub Linux - Newbie 1 06-25-2004 09:56 AM
Understanding Linux goodies barelurker Linux - Newbie 36 03-14-2004 06:10 PM
Understanding Linux better learninlinux LinuxQuestions.org Member Intro 1 10-03-2003 02:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration