-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix/offset or ignore #902
Conversation
…ub.com/grasdk/pigallery2 into bugfix/offset-or-ignore
Added a Config setting "ignore timezone offset". When set, timestamps are handled as if they are local when searching and sorting. I also changed the handling in filtering, but did not see any effect on the drop-down filter, but I thought the code change was for the better anyway. New issue about the filter should probably be created, unless it's just me who don't understand how to use it ;) When changing the setting, once has to hard-reload (CTRL-F5) to get the effect when coming back from settings to the gallery. I still think that it might be nice/fun to switch this setting at the search/filter/sort controls instead of in the admin panel, but it's not crucial for the usability. Also I managed not to touch the metadata. I wouldn't like to "lie" about the metadata, by putting in false data. Now it's all available and the UI controls how it's used ;) |
…igallery2 into bugfix/offset-or-ignore
cf1e491
to
8120997
Compare
@bpatrik Commenting on our talk. The changes here basically amount to
|
Can you describe what do you expect and what do you get? Do you maybe have a screenshot? update: You will probably need to update the UI too (html file) to properly handle the timezone. As now the filter timezone number changes based on the config value. |
Great! Thank you very much for your contribution! |
New boolean option "Ignore timstamp offsets", default value true.
When enabled, searching, sorting, grouping and filtering uses the picture metadata's local time instead of the global time.
So two pictures taken at e.g. 11.00.00 AM 12 hours apart on opposite sides of the globe, will show up, when searching for dates that include this time.
Should solve: #871 and #892