Changeset 11097 for trunk/src/bp-core/bp-core-functions.php
- Timestamp:
- 09/13/2016 09:14:06 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-functions.php
r11088 r11097 1309 1309 } 1310 1310 1311 $date = new DateTime( $timestamp, new DateTimeZone( 'UTC' ) ); 1311 try { 1312 $date = new DateTime( $timestamp, new DateTimeZone( 'UTC' ) ); 1313 1314 // Not a valid date, so return blank string. 1315 } catch( Exception $e ) { 1316 return ''; 1317 } 1318 1312 1319 return $date->format( DateTime::ISO8601 ); 1313 1320 }
Note: See TracChangeset
for help on using the changeset viewer.