Adjusted the file date and time format
This commit is contained in:
parent
8191aa640b
commit
7d2ceedc9a
@ -856,9 +856,9 @@ class FTPServer : public TCPServer<T>
|
||||
client->_dataClient.printf("%crwxrwxrwx 1 owner esp8266 %d %s %s %s:%s %s\r\n",
|
||||
fileOrDir.isDirectory() ? 'd' : '-',
|
||||
fileOrDir.isDirectory() ? 0 : fileOrDir.size(),
|
||||
monthNumTo3LetterAbbreviation(month, timeP->tm_mon),
|
||||
monthNumTo3LetterAbbreviation(month, timeP->tm_mon + 1), //+1 because in the tm struct, month goes from 0 to 11 ...
|
||||
dateTimeFormater(zero_prepended[0],timeP->tm_mday,'0'),
|
||||
dateTimeFormater(zero_prepended[1],timeP->tm_hour,'0'),
|
||||
dateTimeFormater(zero_prepended[1],!timeP->tm_hour ? 23 : timeP->tm_hour-1 ,'0'),
|
||||
dateTimeFormater(zero_prepended[2],timeP->tm_min,'0'),
|
||||
fileOrDir.name());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user