mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-08 19:41: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:
|
||||
(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
|
||||
|
||||
|
@ -221,8 +221,10 @@ jabberMsg(XMLNode node, mixed origin, mixed *su, array(mixed) tu) {
|
||||
time[TM_YEAR], time[TM_MON],
|
||||
time[TM_MDAY], time[TM_HOUR],
|
||||
time[TM_MIN], time[TM_SEC]);
|
||||
if (res == 6 && (res = mktime(time)) != -1) {
|
||||
vars["_time_place"] = res; //helper["@stamp"];
|
||||
if (res == 6) {
|
||||
// mktime uses month from 0 to 11, december error fixed
|
||||
time[TM_MON]--;
|
||||
if ((res = mktime(time)) != -1) vars["_time_place"] = res;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user