|
#1
|
||||
|
||||
|
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 |
|
#2
|
||||
|
||||
|
yeah pretty much, perhaps I can whip something up provided I have the time.
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
|
|
#3
|
||||
|
||||
|
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 |
|
#4
|
||||
|
||||
|
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:
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
|
|
#5
|
||||
|
||||
|
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 |
|
#6
|
||||
|
||||
|
ok, I'll look at it later.
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
|
|
#7
|
||||
|
||||
|
Try this:
PHP Code:
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
|
|
#8
|
||||
|
||||
|
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 |
|
#9
|
||||
|
||||
|
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:
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
|
|
#10
|
||||
|
||||
|
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? |
| Post Reply |
| Thread Tools | |
|
|