fix2
This commit is contained in:
parent
35972812bb
commit
708fc9ab3c
BIN
du3/program
BIN
du3/program
Binary file not shown.
@ -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,7 +23,10 @@ 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);
|
||||||
|
Loading…
Reference in New Issue
Block a user