Multiple Time Zones

pts.
Tags:
IBM iSeries
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.

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • pdraebel
    I recently ran accross a software product that could hold the answer for your problmems TZN400
    3,230 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following