Timeline for TimeZone.getTimeZone(tz) where String tz equals a supported (I think) timeZoneIdString throws 'Method does not exist or incorrect signature' error
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 6, 2019 at 22:01 | vote | accept | Nate Gelle | ||
May 6, 2019 at 21:46 | answer | added | Adrian Larson♦ | timeline score: 3 | |
May 6, 2019 at 21:28 | comment | added | Nate Gelle |
My apologies. There was a variable named timezone that I was missing. Thank you for your help.
|
|
May 6, 2019 at 21:02 | comment | added | Nate Gelle |
Version 44.0. Strangely, it works from the Execute Anonymous Window (I can log a display name), but when I try to deploy from VS Code, or edit from the build screen in SF, I get the same error. I don't see any other class or variable named TimeZone .
|
|
May 6, 2019 at 20:50 | comment | added | Adrian Larson♦ |
I am not able to reproduce this error. What API Version are you using? Do you have any variables or other classes named TimeZone ?
|
|
May 6, 2019 at 20:50 | review | First posts | |||
May 6, 2019 at 22:39 | |||||
May 6, 2019 at 20:49 | history | edited | Nate Gelle | CC BY-SA 4.0 |
Modified title to begin with class and method
|
May 6, 2019 at 20:46 | history | edited | Adrian Larson♦ | CC BY-SA 4.0 |
added 46 characters in body; edited tags
|
May 6, 2019 at 20:46 | history | asked | Nate Gelle | CC BY-SA 4.0 |