xreef / SimpleFTPServer

A simple FTP server for Arduino, ArduinoSAMD WiFiNINA, esp8266, esp32, stm32 and Raspberry Pi Pico W
Other
138 stars 37 forks source link

Please Fix the Hardcoded Last Modified Time for ESP32 SD #61

Open qiweimao opened 4 months ago

qiweimao commented 4 months ago

Line to line in FtpServer.cpp

strcpy(dtStr, "19700101000000");

xreef commented 4 months ago

Hi, It isn't so simple; there isn't an RTC on all MCUs. Bye Renzo

qiweimao commented 4 months ago

Hi,

It isn't so simple; there isn't an RTC on all MCUs.

Bye Renzo

Hi Renzo! How about we add if statement to allow users to choose if they want to use system time? If they have NTP synced, they are safe to use system time.