mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-12 13:31:00 +00:00
december bugfix: mktime doesn't like month number 12
This commit is contained in:
parent
f47227d54d
commit
1ec31a5479
5
makefile
5
makefile
@ -58,6 +58,7 @@ local/all.ls:
|
|||||||
.links:
|
.links:
|
||||||
(cd world;../bin/findlinks */de/* */en/*) >$@
|
(cd world;../bin/findlinks */de/* */en/*) >$@
|
||||||
|
|
||||||
exefix:
|
rights:
|
||||||
|
find . -type d -exec chmod 755 {} \;
|
||||||
|
find . -type f -exec chmod 644 {} \;
|
||||||
chmod +x bin/* run/* config/psyced.settings install.sh utility/multipatcher
|
chmod +x bin/* run/* config/psyced.settings install.sh utility/multipatcher
|
||||||
|
|
||||||
|
@ -221,8 +221,10 @@ jabberMsg(XMLNode node, mixed origin, mixed *su, array(mixed) tu) {
|
|||||||
time[TM_YEAR], time[TM_MON],
|
time[TM_YEAR], time[TM_MON],
|
||||||
time[TM_MDAY], time[TM_HOUR],
|
time[TM_MDAY], time[TM_HOUR],
|
||||||
time[TM_MIN], time[TM_SEC]);
|
time[TM_MIN], time[TM_SEC]);
|
||||||
if (res == 6 && (res = mktime(time)) != -1) {
|
if (res == 6) {
|
||||||
vars["_time_place"] = res; //helper["@stamp"];
|
// mktime uses month from 0 to 11, december error fixed
|
||||||
|
time[TM_MON]--;
|
||||||
|
if ((res = mktime(time)) != -1) vars["_time_place"] = res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user