mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
Add Temporal::localNow() shorthand for Temporal::convert()
This commit is contained in:
parent
89602e44da
commit
a2ee2b56d2
5 changed files with 23 additions and 12 deletions
|
@ -276,8 +276,8 @@ function events_content(App $a) {
|
|||
// The view mode part is similiar to /mod/cal.php
|
||||
if ($mode == 'view') {
|
||||
|
||||
$thisyear = Temporal::timezoneNow(date_default_timezone_get(), 'Y');
|
||||
$thismonth = Temporal::timezoneNow(date_default_timezone_get(), 'm');
|
||||
$thisyear = Temporal::localNow('Y');
|
||||
$thismonth = Temporal::localNow('m');
|
||||
if (! $y) {
|
||||
$y = intval($thisyear);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue