Explorar o código

Change time format H:i:s -> H:i

Foppe Hemminga %!s(int64=6) %!d(string=hai) anos
pai
achega
2bb8bec0fb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ajax.php

+ 1 - 1
ajax.php

@@ -50,7 +50,7 @@ function parse_data()
 			// $datetime_object->setTimestamp( $datetime );
 			$datetime_object->setTimezone( new DateTimeZone( $venue['localTimezone'] ) );
 			$date = $datetime_object->format( 'Y-m-d' );
-			$time = $datetime_object->format( 'H:i:s' );
+			$time = $datetime_object->format( 'H:i' );
 			$return[] = [$date, $time, $venue['name'], $venue['localTimezone'], count( $races )];
 			$sth->bindParam( ':race_date', $date );
 			$sth->bindParam( ':venue', $venue['name'] );