summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/date_helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/date_helper.php b/system/helpers/date_helper.php
index 7bec8079d..b186b2acb 100644
--- a/system/helpers/date_helper.php
+++ b/system/helpers/date_helper.php
@@ -771,8 +771,8 @@ if ( ! function_exists('date_range'))
{
$arg = (int) $mixed;
}
+
$period = new DatePeriod($from, new DateInterval('P1D'), $arg);
- $range = array();
foreach ($period as $date)
{
$range[] = $date->format($format);
@@ -836,7 +836,7 @@ if ( ! function_exists('date_range'))
* $unix_timestamp + 86400
*
* ... due to DST, there's a possibility of calculation errors and/or incorrect
- * hours generated (if the specified format displays such data) due to DST.
+ * hours generated (if the specified format displays such data).
*/
$from = $to = array();