Skip to content

Commit

Permalink
Merge pull request #405 from catslovedata/cld-1
Browse files Browse the repository at this point in the history
Make "date to" inclusive of last selected day
  • Loading branch information
benkeen authored Mar 7, 2017
2 parents 702b87b + 05920b8 commit 36b6b2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/dataTypes/Date/Date.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ private function getDate($options) {
list($month, $day, $year) = explode("/", $options["from"]);
$fromDate = mktime(0, 0, 0, $month, $day, $year);
list($month, $day, $year) = explode("/", $options["to"]);
$toDate = mktime(0, 0, 0, $month, $day, $year);
$toDate = mktime(23, 59, 59, $month, $day, $year);

// randomly pick a date between those dates
$randDate = mt_rand($fromDate, $toDate);
Expand Down

0 comments on commit 36b6b2a

Please sign in to comment.