Roxen.git
/
server
/
etc
/
modules
/
Variable.pmod
/
Schedule.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/etc/modules/Variable.pmod/Schedule.pike:62:
return res; } private string checked( int pos, int alt ) { if(alt==query()[pos]) return " checked='checked'"; return ""; }
+
protected int mktime(mapping m)
+
{
+
int t = predef::mktime(m);
+
if (m->timezone) {
+
// Compensate for cases where predef::mktime() is broken.
+
// Cf [WS-469].
+
t += t - predef::mktime(localtime(t));
+
}
+
return t;
+
}
+
private mapping next_or_same_day(mapping from, int day, int hour) { if(from->wday==day && from->hour<hour) return from; return next_day(from, day); } private mapping next_day(mapping from, int day) { from->hour = 0;