The problem is occurring because the Time Zone setting has an offset value that is not needed.
The input is broken down as following for the TZ=WST-8WDT-8,M10.1.0,M4.1.0 :
WST-8 sets Standard Time
WDT-8 indicates that there is a Daylight Savings Time being used and gives the offset value
M10.1.0 is the start date for the Daylight Savings Time to take effect
M4.1.0 is the end date for the Daylight Savings Time
If you do not wish to specify daylight savings time, the correct setting should just be TZ =WST-8 without any daylight savings offset (WDT). The error occurs when the offset value passed into the setDSTSavings (a native Java function) is “0” and that function only handles positive numbers.