Written by

Question Anas Smith · Jul 15, 2024

HOROLOG is not reflecting correct time

Hi 

when using $zt($P($H,",",2)) from terminal it gives the correct local server time but when using it in my cache code it gives an incorrect time (5 hrs difference

but from the code it gives  13:14:54 !?

Thanks 

Product version: Ensemble 2018.1

Comments

Julian Matthews · Jul 15, 2024

This feels like a timezone/locale issue - is the difference between your time zone and UTC also 5 hours apart?

0
Anas Smith  Jul 16, 2024 to Julian Matthews

Its 4 hrs difference  but I'm wondering why running it from the terminal gives different result to running from Studio !? 

0
Julian Matthews  Jul 16, 2024 to Anas Smith

The key difference between the two scenarios is that you're running the application for the instances where you are getting the correct time.

Have you checked the server timezone settings for the user running Ensemble in your environment?

0
Manel Trèmols  Jul 18, 2024 to Julian Matthews

I guess script getting wrong time has a set $ztimezone=5 or -5 somewhere, this will change $horolog only for this process

0