Perspective session is showing the Timestamp in UTC instead of local

I have a label with Indirect tag binding to display the Timestamp of a OPC tag which is inside an UDT. The template view is bound to the UDT as a drop target through tagPath. The binding preview and Tag Browser are shwoing the time in local time zone (EST), but the perspective browser session is showing in UTC.

Please note the project setting is configured to use Gateway time


zone which is running in EST.

Then it is doing what you asked.

If you want the browser to display the time in the client's timezone then, in Designer → Project → Project Properties → Perspective / General → Project Timezone = Client Timezone.

Thanks for taking time to reply to my post. One clarification, basically both my Gateway and client session are running on the same machine.

That might be a problem. Your gateway should be saving everything in UTC, not EST. That may mean that your browser will pick up the same time zone as the server. Check what the timezone setting is on the gateway. (I'm in Ireland so we're on GMT and this isn't much of a problem for us!)

Meanwhile, I have updated the Perspective project settings to use the Client Time zone. But no change in behavior, still the the browser is showing the time in UTC.

What column type are you using in the table with the dates?

That they are surrounded by quotes makes me think these dates are being rendered to string earlier than they should be.

I think, "they are surrounded by quotes makes me think these dates are being rendered to string" is a possibility. But the data source is real time OPC tag inside an UDT.

The am using indirect binding on a label to display the Timestamp property of this OPC tag.

You've hidden the Data Type property in Tag Editor. What is it?

The "Heartbeatflag" is a Boolean. Please note that the actual binding on the label is on the Timestamp property of this Boolean tag.

Again, please share your Perspective table configuration. In particular the "columns" property.

I think I have already clarified on this. This data is not stored in any database. This is a live data coming out of a OPC UA Server.

You are displaying this live data in a Perspective table, no?

No, I am not using any table here. Its a simple indirect tag binding on a label component.

You may need to apply a Datetime format transform in the label configuration. I'm not really sure what the right approach is, maybe someone else knows, or you can call support.

When you do any Perspective date-to-string formatting operations yourself (whether expression binding or jython script), you are responsible for applying the session time zone. This topic shows how:

If you assign a datetime (java.util.Date, not a string, nor a jython datetime) to a Perspective component that knows how to do date formatting on the client side (typically has a dateFormat property somewhere), that component will do this for you.

1 Like

@pturmel , Thanks for the detailed clarification. I have just configured a DateTime Transformation (no scripting) on the binding. Then the label started displaying the time in local time zone.

1 Like