diff options
author | alecpl <alec@alec.pl> | 2012-02-17 07:29:32 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2012-02-17 07:29:32 +0000 |
commit | e5306ee5d0f03a87187dc274a83c56b49ac672b7 (patch) | |
tree | 6be6493062c3ee04a7cfb24c4b28a507f1820fbe /program/include/main.inc | |
parent | 19b34b7058117832de44682a7d3eb4ada9859be4 (diff) |
- Fix date_today, broken in r5707
Diffstat (limited to 'program/include/main.inc')
-rw-r--r-- | program/include/main.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index 35c2df4c7..1e84e2dfb 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -790,6 +790,7 @@ function format_date($date, $format=NULL, $convert=true) // define date format depending on current time if (!$format) { + $now = time(); $now_date = getdate($now); $today_limit = mktime(0, 0, 0, $now_date['mon'], $now_date['mday'], $now_date['year']); $week_limit = mktime(0, 0, 0, $now_date['mon'], $now_date['mday']-6, $now_date['year']); |