SDK LrDate.timeFromComponents won't accept "local" as timeZone

  • 1
  • Problem
  • Updated 8 years ago
The LR 3.0 SDK API Reference says about the "timeZone" parameter of LrDate.timeFromComponents:

(number, string, Boolean) The string "local" or true to use the local time zone, or an explicit time zone...

But in fact, passing "local" or true as the timeZone is treated the same as UTC. You need to pass the value of LrDate.timeZone (). I've reported this.
Photo of John R. Ellis

John R. Ellis, Champion

  • 4058 Posts
  • 1069 Reply Likes

Posted 8 years ago

  • 1
Photo of Paul Kleczka

Paul Kleczka, Employee

  • 44 Posts
  • 5 Reply Likes
I've reproduced and logged this bug. I believe this is more of a documentation error than the API actually misbehaving.