![]() |
EXIF_CAPTURE_DATE format
Hi,
Is there a hack or script, or whatever, available for making the format of EXIF_CAPTURE_DATE a bit more "user friendly"? Right now, the format displays as: 2006:10:05 16:14:28 I'd prefer it to be displayed in the same format as (my) IMAGE_DATETIME Oct 5, 2006 - 16:14:28 Possible? -Witty |
yeah pretty much, perhaps I can whip something up provided I have the time.
|
Hi,
Great thanks... much appreciated. It's not like it's deal-breaker or anything, but my blog sort of depends on image capture times moreso than image posting times. So having a format that's easier to read would be cool. -Witty |
Ok here ya go: I'm assuming your running version 1.6: open functions_exif.php in your includes folder. Use an ASCII editor, preferably one that understands unix style text files.
Go to line 77 PHP Code:
PHP Code:
|
Hi,
Will it work in 1.5 (I suppose I could just try it)? I haven't upgraded to 1.6 yet... which I will as soon as I'm done building the site. Thanks! -Witty EDIT: OK, just tried it. It "works", but somehow changes all of the dates to: Dec 31, 1969 - 23:59 |
ok, I'll look at it later.
|
Try this:
PHP Code:
|
Thought this was a neat idea, so I just tried the latest code that you posted, and this is the date that I am getting with mine:
Jan 1, 1970 - 00:00 |
Go to the function replace_exif_tags ($language_full, $image_exif, $tpl). Place the following line right after the {
PHP Code:
PHP Code:
PHP Code:
|
Still not working for me - after the above changes, I get:
Dec 31, 1969 - 20:00 Just wondering - my PP install is on a server that is using PHP version 5.1.4. Could that be causing a conflict with your proposed changes? |
| All times are GMT. The time now is 01:44 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.