Last modified: 2012-09-06 18:20:09 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T41988, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39988 - If the EXIF time for an image is 00:00:00, don't include the time in the date field
If the EXIF time for an image is 00:00:00, don't include the time in the date...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
master
All All
: High minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-05 07:34 UTC by Ryan Kaldari
Modified: 2012-09-06 18:20 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ryan Kaldari 2012-09-05 07:34:00 UTC
Looks like we're getting lots of dates like: "5 May 2007, 00:00:00"
Comment 1 Ryan Kaldari 2012-09-06 03:11:35 UTC
Fixed in https://gerrit.wikimedia.org/r/#/c/22879/
Comment 2 Mark Holmquist 2012-09-06 03:16:40 UTC
But....what about a picture of the ball dropping on New Year's? That would *have* to be at 00:00:00....

OK, edge case. My point is, it has its use, and it's silly to assume that the default value should be considered null. Agreed that there's some small interest in not including the time when the EXIF data doesn't show it and the user doesn't set it, but simply blacklisting a valid time doesn't appear to be the answer.
Comment 3 Ryan Kaldari 2012-09-06 05:21:50 UTC
Well, you're right, there is a 1 in 86400 chance that the actual time is the default value, but which option is worse:

1. Not showing the time information for 1 in 86400 photos

2. Showing misleading time information for a large number of photos

Of course there may be a third option... Something like detect for the case where the date but not the time is set in the EXIF, but that would require more work. I would be happy to see something like that implemented, but I'm not going to have time to look into it further myself :(
Comment 4 Ryan Kaldari 2012-09-06 18:20:09 UTC
I added a FIXME to the code comments to implement a better solution. Going to go ahead and deploy this for now as a stop-gap.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links