Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Prior to about 1968 there were all sorts of weird offsets, especially in less-developed parts of the world. You don't say what locale you're using, but if it's in India, there was once something called Howra Mean Time that had that offset. I don't know if it was in effect in 1933 however. You will likely have to download the <a href="http://www.twinsun.com/tz/tz-link.htm" rel="nofollow">tz database</a> for your locale and check the configuration for that date.</p> <p>EDIT: To verify exactly what is happening, try:</p> <pre><code>GregorianCalendar c = new GregorianCalendar(); TimeZone tz = c.getTimeZone(); System.out.println(tz); int tzo = tz.getOffset(date.getTime()); System.out.println( tzo/3600000 + ":" + (tzo/60000)%60 + ":" + (tzo/1000)%60 + "." + tzo%1000); </code></pre> <p>This will tell you what the system thinks the current timezone is, and the timezone offset in effect on the problematic date in 1933. When I run this in my system I get:</p> <pre><code>sun.util.calendar.ZoneInfo[id="America/Chicago",offset=-21600000,dstSavings=3600000,useDaylight=true,transitions=235,lastRule=java.util.SimpleTimeZone[id=America/Chicago,offset=-21600000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=8,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=3,endMonth=10,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]] -6:0:0.0 </code></pre> <p>HOWEVER, if I change one line:</p> <pre><code>GregorianCalendar c = new GregorianCalendar(TimeZone.getTimeZone("IST")); </code></pre> <p>I then get:</p> <pre><code>sun.util.calendar.ZoneInfo[id="IST",offset=19800000,dstSavings=0,useDaylight=false,transitions=6,lastRule=null] 5:53:20.0 </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload