Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

Bug with TZ variable in Interix

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Bug with TZ variable in Interix Page: [1]
Login
Message << Older Topic   Newer Topic >>
Bug with TZ variable in Interix - May 9, '06, 2:18:13 PM   
korona_lite

 

Posts: 19
Joined: Nov. 7, '05,
Status: offline
When you invoke any of your interix app as a service through Windows Standard Service Interface, it doesnt set TZ variable correctly.

If your PC's TimeZone is GMT+5:30 , it will miss ":30" and pass only 'GMT+5".
so as long as you use your PC's Timezone in multiple of HOUR, you will be fine...

Work around is to unset the TZ variable in your app, then it will pick the system time automatically.
Post #: 1
RE: Bug with TZ variable in Interix - May 11, '06, 11:17:17 PM   
markfunk

 

Posts: 670
Joined: Mar. 31, '03,
Status: offline
Good catch.

Note to Rodney and IndiaDev:

- Looks like we forgot to remove the TZ initialization in psxrun.exe
when we did the timezone re-org. (e.g when we removed TZ init from posix.exe in SFU3.5)
and decided that TZ is not supposed to be set in the environment by default.
And when we changed TZ to _not_ be in the IST-5:30 format anymore.
It is now supposed to be something like "TZ=Asia/Calcutta".
(like what gettzenv() now returns).

(in reply to korona_lite)
Post #: 2
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Bug with TZ variable in Interix Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.047