Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1036

Gallery QML DocumentGalleryModel is returning bad date times e.g. lastAccessed, lastModified, dateTaken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 1.2.0
    • 1.1.x
    • Document Gallery
    • None
    • Linux dhcppc 2.6.28-19-generic #66-Ubuntu SMP Sat Oct 16 17:39:04 UTC 2010 i686 GNU/Linux
      tracker 0.6.93-0ubuntu3
    • c56d240cacf2a45a9c60e3541456cc992cad3bf1

      So when getting any date information from QML DocumentGalleryModel for images and videos (may be also for other types) date is not valid.

      Test code attached

      When checking with tracker-info of image valid dates are there:
      $ tracker-info file:///home/tliljend/n900_images/20100902_039.jpg
      Defaulting to 'files' service
      Results: 23 for '/home/tliljend/n900_images/20100902_039.jpg'
      'DC:Format' = 'image/jpeg'
      'DC:Type' = 'Image'
      'Image:Height' = '1440'
      'Image:Width' = '2560'
      'Image:Date' = '1283459116'
      'Image:CameraMake' = 'Nokia'
      'Image:CameraModel' = 'N900'
      'Image:Orientation' = '8'
      'Image:ExposureProgram' = 'Not defined'
      'Image:ExposureTime' = '0.030303030303030304'
      'Image:FNumber' = '2.8'
      'Image:Flash' = '0'
      'Image:FocalLength' = '5.2'
      'Image:ISOSpeed' = '123'
      'Image:WhiteBalance' = 'Auto white balance'
      'File:Name' = '20100902_039.jpg'
      'File:Ext' = 'jpg'
      'File:Path' = '/home/tliljend/n900_images'
      'File:NameDelimited' = '/home/tliljend/n900_images/20100902_039.jpg'
      'File:Mime' = 'image/jpeg'
      'File:Size' = '480666'
      'File:Modified' = '1283448316'
      'File:Accessed' = '1283506623'

      #date -d @1283459116
      Thu Sep 2 23:25:16 EEST 2010
      $ date -d @1283448316
      Thu Sep 2 20:25:16 EEST 2010
      $ date -d @1283506623
      Fri Sep 3 12:37:03 EEST 2010

        1. ImageDataTest.qml
          1 kB
          Teemu Liljendahl
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            cristiano cristiano di flora
            tliljend Teemu Liljendahl
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes