Skip to content

Commit

Permalink
Update to version 1.11.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRogersCS committed Nov 14, 2024
1 parent 7ed0c79 commit 358391d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1066,13 +1066,13 @@ static bool writeConfigurationToFile(configSettings_t *configSettings, uint32_t

if (time.tm_hour == 0 && time.tm_min == 0 && time.tm_sec == 0) {

length += sprintf(configBuffer + length, "\r\nFirst recording date : ");
length = sprintf(configBuffer, "\r\n\r\nFirst recording date : ");

length += sprintf(configBuffer + length, "%04d-%02d-%02d (%s)", YEAR_OFFSET + time.tm_year, MONTH_OFFSET + time.tm_mon, time.tm_mday, timezoneBuffer);

} else {

length += sprintf(configBuffer + length, "\r\nFirst recording time : ");
length = sprintf(configBuffer, "\r\n\r\nFirst recording time : ");

length += sprintf(configBuffer + length, "%04d-%02d-%02d %02d:%02d:%02d (%s)", YEAR_OFFSET + time.tm_year, MONTH_OFFSET + time.tm_mon, time.tm_mday, time.tm_hour, time.tm_min, time.tm_sec, timezoneBuffer);

Expand Down

0 comments on commit 358391d

Please sign in to comment.