![]() |
|
Exif DateTime - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Exif DateTime (/thread-6850.html) |
Exif DateTime - ClicClac - 2010-03-30 I'm using printImageMetadata('', false,'exifdata'); With Canon 20D, 50D, Exif DateTimeOriginal give 2006:05:24 10:08:14 Exif DateTime - sbillard - 2010-03-31 But of course. The printImageMetadata just prints what your camera records. To get something more readable you will have to format the data yourself rather than using that function. Exif DateTime - ClicClac - 2010-03-31 Ok, I modify the printImageMetadata function: .../...
.../... function exif_date($date,$apn) {
Exif DateTime - Blue Dragonfly - 2010-03-31 I would suggest that instead of checking for the camera model, check for the time format itself. I suspect that other cameras use the ISO-8601 time format as well, and it would be a pain to keep updating the script for each camera model, rather than using a RegEx or similar to identify the time format, and display it accordingly. That would be more effective, and less maintenance. I know PHP's strftime function can format a date/time in ISO-8601 format, but am not sure if strtotime or a similar built-in function can parse it. Just my thoughts, as a programmer (though not specifically for PHP)! :-) Exif DateTime - sbillard - 2010-03-31 strtotime will parse any valid time format. Exif DateTime - ClicClac - 2010-04-01 Many thanks!!! |