MDTM conmmand and UTC time format

Dear, Support!

First, common syntax for MDTM command:
MDTM YYYYMMDDHHMMSS somefile.txt

Now, questions .

1. The YYYYMMDDHHMMSS parameter is time in UTC format?

2. SetFileTime() SmartFTP function does some UTC<->local_time conversions or it simply execute the MDTM command?

Regards,
Nikolai

Hello ...

>1
According to the RFC/Draft the MDTM value shall be in UTC. As far as I remember only some old Serv-U versions didn't follow the RFC/Draft.

>2
No conversation is done. The SetFileTime() function expects the time in UTC.

As a general rule, your application should internally use UTC time. And the time should be converted to the system/local time when displayed in the UI.

Regards,
-Mat

Hello, Mat!

Thank you for your quick reply!


As a general rule, your application should internally use UTC time. And the time should be converted to the system/local time when displayed in the UI.
It is my most favorite rule

Regards,
Nikolai