Re: One last question.....on DST



beetle.vw@xxxxxxxxx wrote:
On Mar 8, 12:52 pm, "ThreeStar" <s...@xxxxxxxxxxxxxxxxx> wrote:
On Mar 8, 9:44 am, Bill Campbell <b...@xxxxxxxxxxxxx> wrote:



On Thu, Mar 08, 2007, Jean-Pierre Radley wrote:
beetle...@xxxxxxxxx typed (on Thu, Mar 08, 2007 at 08:16:07AM -0800):
| One last question.....on DST
| When editing a CST TIMEZONE file, I have been using this format:
| TZ='CST6CDT,M3.2.0/2,M11.1.0/2'
|
| But recently I have seen other postings use:
| TZ='CST6CDT5,M3.2.0/2,M11.1.0/2'
|
| Which is correct?
Either one, they are equivalent.
It is less than obvious that to get the specifics on the construction of
the TZ variable you should run 'man environ'.
There you can read:
The offset after dst is the difference between local standard
time and local summertime. If you do not specify an offset, it
is assumed to be one hour. (This is usually what you want.)
I think that is in error, and what it SHOULD say is that the [optional]
offset after dst is the difference from the time at the Prime Meridian,
and if this offset is not specified, then it is assumed to one hour less
than the offset for standard time.
What processes access the /etc/TIMEZONE file to set TZ?
I don't see anything in /etc/profile or similar startup scripts that would
be used to set user's environments (OpenServer 5.0.6a and earlier).
I've been appending ``. /etc/TIMEZONE'' to the /etc/profile file when
updating these systems.
Bill
--
INTERNET: b...@xxxxxxxxxxxxx Bill Campbell; Celestial Software LLC
URL:http://www.celestial.com/PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
``Everybody is ignorant, only on different subjects.''
Will Rogers
The init process appears to read /etc/TIMEZONE when it starts up. It
passes TZ on to the shells. Unfortunately it doesn't re-read it when
signaled (telinit). You have to re-boot for changes in it to take
effect.

Explicitly including TIMEZONE in /etc/profile is good practice, but
won't ensure that all of init's other children are on the same page.
I've re-booted all systems after changing TIMEZONE.

--Ray Robert

I have also rebooted after making changes. I tested the TIMEZONE edit
on a brand new 5.0.7 mp5, rolled the date ahead rebooted and time
reflected the change. But when I took it one more step moving the date
ahead to 11/5 the time did not change? Suggestions....comments.

Thanks!



Hmm.

The TZ edit should not be needed on 5.0.7 with MP5 applied. MP5 includes the DST patch.

Perhaps adding the /etc/TIMEZONE edit to a system with MP5 also applied is confusing 5.0.7?

--
----------------------------------------------------
Pat Welch, UBB Computer Services, a WCS Affiliate
SCO Authorized Partner
Unix/Linux/Windows/Hardware Sales/Support
(209) 745-1401 Cell: (209) 251-9120
E-mail: patubb@xxxxxxxxxxx
----------------------------------------------------
.



Relevant Pages

  • Re: [PHP] [RFC] HTTP timezone
    ... provide appropriate date/time strings/representations and/or content. ... checked my own, and I see that the time is correct, but the Timezone ... I've read your complete draft, and it doesn't say anything about DST, ... In DST the offset from UTC is adjusted and thus it will become +2 in your ...
    (php.general)
  • Re: One last question.....on DST
    ... offset after dst is the difference from the time at the Prime Meridian, ... You have to re-boot for changes in it to take ... I've re-booted all systems after changing TIMEZONE. ...
    (comp.unix.sco.misc)
  • Re: localtime isdst and timezone - what does isdst mean exactly?
    ... The tm_gmtoff field isn't standard, so I'm a little unsure about what ... because that is my timezone. ... Again, GMT-7 is an *offset*, not a timezone. ... difference in offset between STD and DST is 30 minutes, ...
    (comp.unix.programmer)
  • Re: localtime isdst and timezone - what does isdst mean exactly?
    ... >>daylight savings time, so tm.timezone(I know, it's not the actual ... >> subtract another hour from timezone because we are in DST ... the correct GMT-6 offset returned. ...
    (comp.unix.programmer)
  • Re: One last question.....on DST
    ... | When editing a CST TIMEZONE file, I have been using this format: ... offset after dst is the difference from the time at the Prime Meridian, ... Explicitly including TIMEZONE in /etc/profile is good practice, ...
    (comp.unix.sco.misc)