Page MenuHomePhabricator

If the EXIF time for an image is 00:00:00, don't include the time in the date field
Closed, ResolvedPublic

Description

Looks like we're getting lots of dates like: "5 May 2007, 00:00:00"


Version: master
Severity: minor

Details

Reference
bz39988

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:03 AM
bzimport added a project: UploadWizard.
bzimport set Reference to bz39988.
bzimport added a subscriber: Unknown Object (MLST).

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.

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
  1. 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 :(

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.

Gilles raised the priority of this task from High to Unbreak Now!.Dec 4 2014, 10:21 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to High.Dec 4 2014, 11:20 AM