Skip to content

Commit

Permalink
#8: Adjust month timestamp to account for all timezones
Browse files Browse the repository at this point in the history
Fixes #8
  • Loading branch information
laryn committed Oct 12, 2021
1 parent bac64ad commit 93bcaa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pretty_calendar.module
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ function pretty_calendar_block_content($month) {

// Format month array.
// Get month timestamp.
$month = mktime(0, 0, 0, date('m', $month), 1, date('Y', $month));
$month = mktime(0, 0, 0, date('m', $month), 12, date('Y', $month));
// Get number of days in the given month.
$dayofmonth = date('t', $month);
$day_count = 1;
Expand Down

0 comments on commit 93bcaa6

Please sign in to comment.