Anybody know how to adjust the time displayed with logs and login times etc.
I know it is set by the server, just wondering if I could add into the php code somewhere a mathematical addition to the time?
Playing with my own php scripts I have got this to work, just not sure where to start looking in the gallery files.
Maybe an idea to add this as a admin option so the gallery can be adjusted to suit local time if the host is in a different country.
Any ideas would be much appreciated.
Many thanks
Liam
Posts: 304
Create the file local.php in your Gallery root directory. The following would set the timezone:
ini_set('date.timezone', 'Europe/Stockholm');
Posts: 18
All this still won't help if album owners are in different time zones. Also note that Gallery implicitly assumes that capture dates in Exif-headers refer to the same time zone as the server. This means that, if you want your capture dates to be correct, you MUST match the server time zone with your camera clock. In a multi-user Gallery setup, this is generally impossible.
So maybe Gallery should allow album owners to set the time zone on a "per album" basis, and also use this setting when reading the Exif-headers. Then you can get the capture dates on your photos right by setting the album to the same timezone as your camera uses.
There is an ancient G2 bug related to this problem ("fix improper display of capture date/time timezone" - ID: 1570759) plus discussion in http://gallery.menalto.com/node/49336 . Is there a way to let G3 "inherit" the G2-bug or should I file a "new" one?
Posts: 15
Thanks both of you.
I adjusted the php.ini file as I found my host allows me to do so, so I set the locale their.
As galbit said it has now altered my timestamps for the capture date, however if you go to more information it will show the correct time. Why can't the gallery just display the exif information for the capture date as raw? If it didn't adjusted it to what it thought was best then the date/time would be correct.
For now I have put my ini file back to how it was and just working out manually what the time of logs/registration etc is
Shame or it would been great.
Posts: 7985
@galbit: please file a new ticket. AFAIK, we still don't know how to solve that problem.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git
Posts: 18
Thanks. I've found ticked #602 which seemed closely related. I've made the appropriate changes to it.
Posts: 15
Anyone know how to update the capture time and date?
After I switched it back all the photos I uploaded during when I had my time zone set got the wrong time/date. Is there a way of forcing it to use only the exif date and time?
Cheers