Closed WeeskyBDW closed 2 years ago
This is caused by the SkriptParser class. For the today()
method, it takes the ZONE_ID
static field into account (which is Greenwich Mean Time for all tests). For the now()
method though, the system time zone is used.
I assume you live in the GMT+1 region somewhere, which is the reason this fails for you between 12PM and 1AM.
I live in France so yes. No way to fix this ?
I live in France so yes. No way to fix this ?
There is an easy fix, working on it as we speak.
👋 i was working on #119 (yes the PR isn't dead lol) and a new test error was throw to me by skript-parser. Test who throw the error is ExprDateTodayAt. After a bit of tests, it appear that it do this only between 0:00 and 1:00 (12am and 1am)
How to reproduct: set your computer hour to 0:35 for example run unit tests (
gradlew test
)skript-parser version: from master branch Java version: 11.8.0 Error:
Edit: this seem to be a know bug, according to the test code. No way to fix that ?