mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
From man localtime, January is 0 and December is 11, compare it to 12 won't do such a thing.
This commit is contained in:
@@ -541,7 +541,7 @@ InitXThing(WScreen *scr)
|
||||
|
||||
t = time(NULL);
|
||||
l = localtime(&t);
|
||||
if ((l->tm_mon!=12||l->tm_mday<24||l->tm_mday>26)) {
|
||||
if ((l->tm_mon!=11||l->tm_mday<24||l->tm_mday>26)) {
|
||||
return False;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user