Diffrent timezones
 
Notifications
Clear all

We had a major storm through here recently and we suffered damage to the house roof and ceilings. I just received the quote to repair. I’m hoping that a small fraction of the 80,000 odd people that download SDIO and/or Desktop Info every month won’t mind chipping in a few dollars to help out. Click on the big blue button at the bottom of the page to help us keep a roof over our heads, literally!

Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.

Diffrent timezones

12 Posts
4 Users
1 Reactions
327 Views
(@unknown198988)
Active Member Registered
Joined: 4 years ago
Posts: 3
Topic starter  

Is there possibility to add diffrent timezones? How can this be defined for instance for US or great Britain?


   
Quote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1444
 

What would you do with that?


   
ReplyQuote
(@unknown198988)
Active Member Registered
Joined: 4 years ago
Posts: 3
Topic starter  

I want to list free diffrent times in my desktop info something like:

US-East: <time>
GreatBritain: <time>
India-Delhi: <time>


   
ReplyQuote
(@unknown198988)
Active Member Registered
Joined: 4 years ago
Posts: 3
Topic starter  

what lines should i add to my config to get such result?


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1444
 

That can't be done right now. A simple offset option in the DATETIME item would probably do the job?


   
ReplyQuote
(@tacod)
Active Member Registered
Joined: 3 years ago
Posts: 6
 

@glenn Hey Glenn, hope you're doing well.  I want to relight this old topic, as it is a great feature to list multiple DATETIME for international companies. The daylight savings shifts are the troublemakers. I cannot push the new INI files 4 times a year.  I need to (luckily) account only for NL-CET and US-Eastern time as the other sites do not use DST.  So could this be achieved in a nested IF statement?  Any pointers you can give? NL changes on March 30 (+1) and back on Oct 26 (-1)  and US changes on March 9 and Nov 2 resp.


   
ReplyQuote
(@tacod)
Active Member Registered
Joined: 3 years ago
Posts: 6
 

It seems that Desktop Info’s `DATETIME` offset field specifically requires a numeric constant and doesn't accept variables directly in the `offset:` field. Any smart people out there with a resolution/workaround? 


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1444
 

Posted by: @tacod

@glenn Hey Glenn, hope you're doing well.  I want to relight this old topic, as it is a great feature to list multiple DATETIME for international companies. The daylight savings shifts are the troublemakers. I cannot push the new INI files 4 times a year.  I need to (luckily) account only for NL-CET and US-Eastern time as the other sites do not use DST.  So could this be achieved in a nested IF statement?  Any pointers you can give? NL changes on March 30 (+1) and back on Oct 26 (-1)  and US changes on March 9 and Nov 2 resp.

You're showing date/time for various locations and want to account for daylight savings at those locations. Nothing comes to mind. I'll look into implementing daylight savings.  Meanwhile have you considered 3rd party web api time queries? 

 


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1444
 

Posted by: @tacod

It seems that Desktop Info’s `DATETIME` offset field specifically requires a numeric constant and doesn't accept variables directly in the `offset:` field. Any smart people out there with a resolution/workaround? 

I just added it. You'll have it in the next release.

 


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1444
 

Well I spent today on daylight savings and what seems really simple turns out to be rather complicated. Knowing when to apply summer time and winter time is the thing. Windows has a registry key at HKLM\Software\Microsoft\Windows NT\CurrentVersion\Time Zones\ listing every time zone it knows about and it's relevant information. Some time zones contain a start date for standard time and start date for daylight saving time.... and some don't.  These time zones that do not contain start dates can't account for daylight savings and so the calculations will be wrong about half the time.

I tried to discover if there is a default for those with no dates but haven't found anything yet. There's no worldwide standard.

 

Edit: I might have been looking at the wrong entries....


   
ReplyQuote
(@tacod)
Active Member Registered
Joined: 3 years ago
Posts: 6
 

@glenn wonderful!


   
ReplyQuote
RatboyJim
(@ratboyjim)
Eminent Member Registered
Joined: 5 months ago
Posts: 12
 

You could use HTTPGET with the API from this site: https://worldtimeapi.org/timezones and extract the time from the JSON field "datetime". I'm reasonably sure it's a fixed length string, so you can use the sub function to extract the time.

 

This post was modified 4 weeks ago 2 times by RatboyJim

   
Glenn reacted
ReplyQuote
Glenn's Page