0 pts.
 Multiple Time Zones
We have users on our iSeries that are in multiple time zones. Is there a way to adjust the job time when a user signs on so it reflects their time zone? I am trying to avoid changing all our RPG programs that use the TIME opcode.

Software/Hardware used:
ASKED: October 26, 2007  3:37 PM
UPDATED: February 18, 2010  8:36 AM

Answer Wiki:
Kick off a CL when the user sign's on to plug in the user's correct date, and pass it to the RPG application. Jack Unfortunately the TIME operation code and the %TIME built in function uses system time. Programmatically is the only way I can see to manipulate the time based on time zones. What annoys me is that we have time zone objects (object type *TIMZON) we can define on the system, but there is not much you can do with it that I can see except to control daylight savings time. It would be nice to have a parameter that can be set on a user profile or a group profile to designate a time zone for that person and the %TIME function would use this to determine the time based on the zone. Maybe in Version 7. Lol. ========================================================== It's fairly easy to create applications that support user-based time zones. However, it requires creating the application from the beginning to do it. A user time zone is a presentation problem. Base the system on UTC time. Store dates/times internally as UTC. Convert inputs and outputs to user time zone just as you might convert date format from user to user. But retro-fitting UTC onto an existing application is probably far more work than it's worth. We have a network-based application that operates on UTC in order to transfer information between systems in different time zones. It takes discipline. If the application isn't prepared for it, there sure isn't much that the system can do about it. Tom
Last Wiki Answer Submitted:  February 17, 2010  9:48 am  by  WaltZ400   645 pts.
All Answer Wiki Contributors:  WaltZ400   645 pts. , Walter47   120 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

I recently ran accross a software product that could hold the answer for your problmems TZN400

 2,250 pts.