Lucas Cristofolini · Apr 25, 2024 go to post

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.

Lucas Cristofolini · Apr 25, 2024 go to post

Hi @Yuhong Snyder

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).

Lucas Cristofolini · Mar 13, 2024 go to post

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.

Lucas Cristofolini · Mar 12, 2024 go to post

Hello @Nezla 

Are you using the HTTP adapter? If so, try using the ..Adapter.SendFormData(.tHttpResponse,"POST",tHttpRequest,,,tURL) method. Your URL will be your server concatenated with the path, which in your case you are setting directly in the POST method.

Lucas Cristofolini · Feb 28, 2024 go to post

Hello @Shashvati Dash 

After you retrieve, you can save the file creating a %Stream.FileBinary and change the FileName to your directory in local FileSystem,

Set tStream = ##class(%GlobalCharacterStream).%New()
$$$THROWONERROR(tSC, ftp.Retrieve(file,tStream))
Set tFile = ##class(%Stream.FileBinary).%New()
Set tFile.Filename = "D:\"_file
Do tFile.WriteLine(tStream.Read())
Do tFile.%Save()
Set tSC = ftp.Logout()