The reason you see this is because the date you create is actually in the past era of the date, not 1m1s after it:
String standartRange = "00:01:01"; SimpleDateFormat rangeFormatter = new SimpleDateFormat("hh:mm:ss"); Date range = rangeFormatter.parse(standartRange); System.out.println(new Date(0L)); System.out.println(new Date(0L).getTime()); System.out.println(range); System.out.println(range.getTime());
and his way out;
Thu Jan 01 01:00:00 GMT 1970 0 Thu Jan 01 00:01:01 GMT 1970 -3539000
The date number is incorrect here - it should be 00:00:00, but due to a historical error , where the BST / GMT date has changed and the time zone cannot be tracked. It seems that Sun / Oracle consider this historic "inaccuracy."
Check the error report - it describes the problem in more detail.
From your language (German), this may not be directly due to this BST problem, but it is almost certainly related.
source share