Changeset 5229
- Timestamp:
- 03/21/10 21:48:21 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMetaData/JpegMetaData/Common/ConvertData.class.php
r4972 r5229 288 288 static public function toDateTime($dateTime) 289 289 { 290 if(preg_match('/^(\d{4}:\d{2}:\d{2}\s\d{2}:\d{2}(:\d{2}){0,1}\x00{0,1}|\d{4}-\d{2}-\d{2}(T|\s)\d{2}:\d{2}(:\d{2}){0,1}(Z|[+|-]\d{2}:\d{2}){0,1}|\d{4}\d{2}\d{2})/', $dateTime)) 290 if(preg_match('/^('. 291 '\d{4}:\d{2}:\d{2}\s\d{2}:\d{2}(:\d{2}){0,1}\x00{0,1}|'. 292 '\d{4}-\d{2}-\d{2}(T|\s)\d{2}:\d{2}(:\d{2}){0,1}(Z|[+|-]\d{2}:\d{2}){0,1}|'. 293 '\d{4}\d{2}\d{2}'. 294 ')$/', $dateTime)) 291 295 { 292 296 $returned=new DateTime($dateTime, new DateTimeZone("UTC"));
![(please configure the [header_logo] section in trac.ini)](http://piwigo.org/screenshots/piwigo_logo_on_white.png)