Local test errors dateTimeFormat.json
alorne opened this issue · comments
When running tests on a local commandbox install I get an error on the dateTimeFormat.json page. The issue seems to be the timezone. The lines of code below:
This code:
dateTimeFormat("2015-04-11 19:02", "long")
This returns on my local machine returns:
April 11, 2015 7:02:00 PM EDT
but the expected result is:
April 11, 2015 7:02:00 PM UTC
I'm not sure if there is a way to fix this or if it matters. I just wanted to point it out. See the errors below
It seems like commandbox runs on local time whereas cfdocs server runs on UTC …
I've hit that before with some of the date functions. The thing I've usually done when local testing is to just adjust the test for the new expectation.
Maybe just use it expliciitly with timezone.
There is another error due to JVM version, I have marked these examples as "testable":false since it may produce different results if you are on Java 8 vs Java 11 for example: LDEV-3744