title: How to make Date locale-independent?
body: <p>I have a db, that stores dates in <code>OleDateTime</code> format, in GMT timezone. I've implemented a class, extending <code>Date</code> in java to represent that in classic date format. But my class is locale-dependent (I'm in GMT+2). Therefore, it converts the date in the db as <code>date - 2 hours</code>. How do I make it convert the date correctly? I want my class to be locale-independent, always using GMT timezone. Actually, the question is:</p>
  
  <pre><code>class MyOleDateTime extends Date {
  
      static {
          Locale.setDefault(WhatGoesHere?)
      }
  
      // ... some constructors
      // ... some methods
  }
  </code></pre>