mirror of
https://github.com/friendica/friendica
synced 2024-12-23 16:00:16 +00:00
Fix wrong default format for default date in mod/events
This commit is contained in:
parent
593774b613
commit
7f5af05d25
1 changed files with 4 additions and 4 deletions
|
@ -469,15 +469,15 @@ function events_content(App $a) {
|
||||||
$smonth = DateTimeFormat::convert($sdt, $tz, 'UTC', 'm');
|
$smonth = DateTimeFormat::convert($sdt, $tz, 'UTC', 'm');
|
||||||
$sday = DateTimeFormat::convert($sdt, $tz, 'UTC', 'd');
|
$sday = DateTimeFormat::convert($sdt, $tz, 'UTC', 'd');
|
||||||
|
|
||||||
$shour = ((x($orig_event)) ? DateTimeFormat::convert($sdt, $tz, 'UTC', 'H') : 0);
|
$shour = ((x($orig_event)) ? DateTimeFormat::convert($sdt, $tz, 'UTC', 'H') : '00');
|
||||||
$sminute = ((x($orig_event)) ? DateTimeFormat::convert($sdt, $tz, 'UTC', 'i') : 0);
|
$sminute = ((x($orig_event)) ? DateTimeFormat::convert($sdt, $tz, 'UTC', 'i') : '00');
|
||||||
|
|
||||||
$fyear = DateTimeFormat::convert($fdt, $tz, 'UTC', 'Y');
|
$fyear = DateTimeFormat::convert($fdt, $tz, 'UTC', 'Y');
|
||||||
$fmonth = DateTimeFormat::convert($fdt, $tz, 'UTC', 'm');
|
$fmonth = DateTimeFormat::convert($fdt, $tz, 'UTC', 'm');
|
||||||
$fday = DateTimeFormat::convert($fdt, $tz, 'UTC', 'd');
|
$fday = DateTimeFormat::convert($fdt, $tz, 'UTC', 'd');
|
||||||
|
|
||||||
$fhour = ((x($orig_event)) ? DateTimeFormat::convert($fdt, $tz, 'UTC', 'H') : 0);
|
$fhour = ((x($orig_event)) ? DateTimeFormat::convert($fdt, $tz, 'UTC', 'H') : '00');
|
||||||
$fminute = ((x($orig_event)) ? DateTimeFormat::convert($fdt, $tz, 'UTC', 'i') : 0);
|
$fminute = ((x($orig_event)) ? DateTimeFormat::convert($fdt, $tz, 'UTC', 'i') : '00');
|
||||||
|
|
||||||
require_once 'include/acl_selectors.php' ;
|
require_once 'include/acl_selectors.php' ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue