diff options
author | Greg Froese <greg.froese@gmail.com> | 2009-06-06 13:23:32 +0000 |
---|---|---|
committer | Greg Froese <greg.froese@gmail.com> | 2009-06-06 13:23:32 +0000 |
commit | b1ec29e1f220e64a6b2ac73d95b847b0b9033a9d (patch) | |
tree | 7a257081efa1cae6bee213251e64b3232e4703c4 | |
parent | 37e5df33a788fb4eaacc15076efd01776f297f21 (diff) | |
download | elgg-b1ec29e1f220e64a6b2ac73d95b847b0b9033a9d.tar.gz elgg-b1ec29e1f220e64a6b2ac73d95b847b0b9033a9d.tar.bz2 |
fixed daily timestamp generation
-rw-r--r-- | mostcommentedimagestoday.php | 2 | ||||
-rw-r--r-- | mostviewedimagestoday.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mostcommentedimagestoday.php b/mostcommentedimagestoday.php index ce0ad8aeb..066feb45e 100644 --- a/mostcommentedimagestoday.php +++ b/mostcommentedimagestoday.php @@ -16,7 +16,7 @@ //find timestamps for today $time_info = new stdClass(); - $time_info->start = mktime(0,0,0, date("m"), 1, date("Y")); + $time_info->start = mktime(0,0,0, date("m"), date("d"), date("Y")); $time_info->end = mktime(); //this works but is wildly inefficient diff --git a/mostviewedimagestoday.php b/mostviewedimagestoday.php index 9f7c10113..04f051317 100644 --- a/mostviewedimagestoday.php +++ b/mostviewedimagestoday.php @@ -14,9 +14,9 @@ $max = 24; - //find timestamps for today + //find timestamps for today $time_info = new stdClass(); - $time_info->start = mktime(0,0,0, date("m"), 1, date("Y")); + $time_info->start = mktime(0,0,0, date("m"), date("d"), date("Y")); $time_info->end = mktime(); //this works but is wildly inefficient |