Lightroom: photo:getRawMetdata ("metadataDate") returns wrong time zone

  • 2
  • Problem
  • Updated 7 years ago
  • (Edited)
In LR 3.5 / Windows 7, calling photo:getRawMetadata ("metdataDate") returns the wrong time zone, "+8:00" instead of "-08:00". This is probably related to the attempted fix in LR 3.5:

On Windows computers, Lightroom would interpret the wrong time zone per
the following customer report:
http://feedback.photoshop.com/photosh...


To reproduce:

1. Import the following pic into the catalog:



2. Do Metadata > Save Metadata To File.

3. Examine the value of XMP:MetadataDate with Exiftool:


[XMP] Metadata Date: 2011:12:04 20:27:30-08:00


4. Run the following Lua script:


import 'LrTasks'.startAsyncTask (function ()
local photo = import 'LrApplication'.activeCatalog ():getTargetPhoto ()
import 'LrDialogs'.message (photo:getRawMetadata ("metadataDate"))
end)


This shows the result of calling getRawMetadata():

Photo of John R. Ellis

John R. Ellis, Champion

  • 3709 Posts
  • 968 Reply Likes

Posted 7 years ago

  • 2
Photo of John R. Ellis

John R. Ellis, Champion

  • 3709 Posts
  • 968 Reply Likes
This is fixed in LR 4 beta (hurray).