This commit is contained in:
Igor Dzuro 2020-03-27 03:57:44 +01:00
parent 35972812bb
commit 708fc9ab3c
2 changed files with 4 additions and 1 deletions

Binary file not shown.

View File

@ -7,7 +7,7 @@
int main() { int main() {
char buffer[20]; char buffer[20];
struct tm tm; struct tm tm = {0};
char *retval = fgets(buffer, sizeof(buffer), stdin); char *retval = fgets(buffer, sizeof(buffer), stdin);
@ -23,8 +23,11 @@ int main() {
return 0; return 0;
} }
tm.tm_isdst = -1;
tm.tm_mday += 7; tm.tm_mday += 7;
mktime(&tm);
strftime(buffer, sizeof(buffer), "%e.%m.%-Y", &tm); strftime(buffer, sizeof(buffer), "%e.%m.%-Y", &tm);
puts(buffer); puts(buffer);
putc('\n', stdout); putc('\n', stdout);