diff --git a/du3/program b/du3/program index 92fd8f0..ed77f5f 100755 Binary files a/du3/program and b/du3/program differ diff --git a/du3/program.c b/du3/program.c index 9f078ae..a3e22ef 100644 --- a/du3/program.c +++ b/du3/program.c @@ -7,7 +7,7 @@ int main() { char buffer[20]; - struct tm tm; + struct tm tm = {0}; char *retval = fgets(buffer, sizeof(buffer), stdin); @@ -23,7 +23,10 @@ int main() { return 0; } + tm.tm_isdst = -1; tm.tm_mday += 7; + + mktime(&tm); strftime(buffer, sizeof(buffer), "%e.%m.%-Y", &tm); puts(buffer);