From dd7d0c4156a28cfc820700d3ba7b45bcbf58bf2e Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 5 Sep 2014 01:58:27 -0700 Subject: more work on the event edit form --- mod/events.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mod') diff --git a/mod/events.php b/mod/events.php index f3bf97141..e5250e8f8 100755 --- a/mod/events.php +++ b/mod/events.php @@ -470,6 +470,7 @@ function events_content(&$a) { $shour = ((x($orig_event)) ? datetime_convert('UTC', $tz, $sdt, 'H') : 0); $sminute = ((x($orig_event)) ? datetime_convert('UTC', $tz, $sdt, 'i') : 0); $stext = datetime_convert('UTC',$tz,$sdt); + $stext = substr($stext,0,14) . "00:00"; $fyear = datetime_convert('UTC', $tz, $fdt, 'Y'); $fmonth = datetime_convert('UTC', $tz, $fdt, 'm'); @@ -478,6 +479,7 @@ function events_content(&$a) { $fhour = ((x($orig_event)) ? datetime_convert('UTC', $tz, $fdt, 'H') : 0); $fminute = ((x($orig_event)) ? datetime_convert('UTC', $tz, $fdt, 'i') : 0); $ftext = datetime_convert('UTC',$tz,$fdt); + $ftext = substr($ftext,0,14) . "00:00"; $f = get_config('system','event_input_format'); if(! $f) -- cgit v1.2.3