I think this documentation can help, TimeZone
Command:
$ZDATETIME($HOROLOG,8,5)
Output:
20240425T15:29:09-03:00
The -03:00 is because I'm in Brazil, daylight saving time is automatic
If you want to know if the time is in daylight saving time or not, you can use the
$SYSTEM.Util.IsDST(TimeStap)
.
I saw the #Ensemble tag, so I thought you were using a Business Operation. Another thing I noticed is that you are not setting the server port that will be called.
Certifications & Credly badges:
Lucas has no Certifications & Credly badges yet.
Global Masters badges:
![DC Commenter](https://community.intersystems.com/sites/default/files/badges/dc_commenter_1.png)
![Great Start](https://community.intersystems.com/sites/default/files/badges/great_start.png)
![Open Exchange Reviewer](https://community.intersystems.com/sites/default/files/badges/oex_reviewer.png)
![The First Tech Quiz](https://community.intersystems.com/sites/default/files/badges/quiz_question.png)
Followers:
Lucas has no followers yet.
Following:
Lucas has not followed anybody yet.
I believe you'll have to set it manually because the value of $HOROLOG refers to the machine running the IRIS instance. You'll need to set the $ZTIMEZONE to your local time zone.