Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CASE-OPENED] Convert System Time to Local Time Zone with DST

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CASE-OPENED] Convert System Time to Local Time Zone with DST
 Login/Join
 
Gold member
posted
We have a production database that stores system times along with different entity timezones. We need a standardized way to convert a system time to any timezone, while also taking into account DST. Does WebFOCUS have a function that we can use to accomplish this?

Our goal is to only display the appropriate local time based on the entities' timezone to our enduser. We are currently hardcoding all report times to Eastern Standard Time.

Thx

This message has been edited. Last edited by: <Kathryn Henning>,




Prod/Dev: WebFOCUS 8.0.08 on Windows Server 2008/Tomcat , WebFOCUS DevStudio 8.0.08 on Windows 7 Pro


 
Posts: 94 | Location: Austin, TX | Registered: August 08, 2012Report This Post
Expert
posted Hide Post
Isn't the system time relative to the users system? If so, it would be relative to the end-user, wouldn't it?
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Gold member
posted Hide Post
No all our system times are stored in UTC - Coordinated Universal Time . We then convert to Eastern using HADD functions. We need to convert the time based on a timezone field defined in our data. Rather than create a long if - else statement to convert timezones with DST, we were hoping there was an easier solution.




Prod/Dev: WebFOCUS 8.0.08 on Windows Server 2008/Tomcat , WebFOCUS DevStudio 8.0.08 on Windows 7 Pro


 
Posts: 94 | Location: Austin, TX | Registered: August 08, 2012Report This Post
Expert
posted Hide Post
Apart from WebFOCUS functions and DEFINE Functions, could anything be done on the DB side ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Silver Member
posted Hide Post
There are 25 hourly time zones plus 14 half-hour time zones. From these you can compute an offset value to adjust to what ever you need. If you do a lot of this, I would suggest you load all the offsets into a database table and create a schema to read the table. That way you can join to the table to get the offset values whenever you need them. Chapter 18 in the "Dates Book" lists all these values and has some examples on how to use them.



WebFOCUS 8.0.2, FOCUS since 1977 - John@Aviter.com
PDF , Excel, FOCUS, Author of the Keysheets and Dates book.
www.Aviter.com
 
Posts: 40 | Registered: April 19, 2013Report This Post
<Kathryn Henning>
posted
Hi Joey,

While we wait to see if another customer can help on this question, please keep us posted on the final solution from your case. Thank you in advance for sharing with all.

Regards,

Kathryn
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CASE-OPENED] Convert System Time to Local Time Zone with DST

Copyright © 1996-2020 Information Builders