solved Photo Pro date and time rendering

Intro2Music
Intro2Music
@intro2music
9 years ago
121 posts
I'm having a bit of trouble trying to get the date and/or datetime to display properly on photo item page.

I've tried this (with the same results) by using a form designer input field, and also tried by using 'gallery_image_time' directly from the image into the template.

Here's how it gets displayed... http://geoengineering.gallery/mick/gallery/9/deterioration-of-chemtrail

Can anyone suggest a fix for this issue?

Mick
updated by @intro2music: 06/15/15 05:11:00PM
douglas
@douglas
9 years ago
2,790 posts
Use this modifier to show the time...

|jrCore_format_time:false:"%F"

{$item.gallery_image_time|jrCore_format_time:false:"%F"}

You can use this to change how the time is displayed...

http://php.net/strftime


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Intro2Music
Intro2Music
@intro2music
9 years ago
121 posts
Thanks Douglas. I think that the date now displayed is the date of upload. I'm actually trying to (using exif) display the date and time that the photograph was taken.

Mick
brian
@brian
9 years ago
10,148 posts
The key you want is called "gallery_image_exif_filedatetime" - it may not exist on every image though, so make sure and check for it - i.e.

{if isset($item.gallery_image_exif_filedatetime)}
Photo taken: {$item.gallery_image_exif_filedatetime|jrCore_format_time}
{/if}

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Intro2Music
Intro2Music
@intro2music
9 years ago
121 posts
Thanks for setting me right, Brian.

Cheers.