Merge pull request #524 from marc1706/ticket/521
[ticket/521] Display correct day of week in calendar module
This commit is contained in:
@@ -176,7 +176,7 @@ class calendar extends module_base
|
|||||||
$this->time = $this->user->create_datetime();
|
$this->time = $this->user->create_datetime();
|
||||||
$now = phpbb_gmgetdate($this->time->getTimestamp() + $this->time->getOffset());
|
$now = phpbb_gmgetdate($this->time->getTimestamp() + $this->time->getOffset());
|
||||||
$today_timestamp = $now[0];
|
$today_timestamp = $now[0];
|
||||||
$mini_cal_today = date('Ymd', $today_timestamp - date('Z'));
|
$mini_cal_today = date('Ymd', $today_timestamp);
|
||||||
$this->stamp = (int) $today_timestamp;
|
$this->stamp = (int) $today_timestamp;
|
||||||
$s_cal_month = ($this->mini_cal_month != 0) ? $this->mini_cal_month . ' month' : $mini_cal_today;
|
$s_cal_month = ($this->mini_cal_month != 0) ? $this->mini_cal_month . ' month' : $mini_cal_today;
|
||||||
$this->get_month($s_cal_month);
|
$this->get_month($s_cal_month);
|
||||||
|
|||||||
Reference in New Issue
Block a user