title: mongodb change database timezone
body: <p>I use spring boot and mongodb. when i persist object in db it change to my local time zone .it is for my mongo TimezoneOffset that is -210 when i run this command on mongo:
  <code>new Date().getTimezoneOffset() =&gt;  -210</code>.  problem is start from production mongodb in another server that this value is <code>new Date().getTimezoneOffset() =&gt;  0</code>!</p>
  <p><strong>question</strong> is how can I make <code>TimezoneOffset</code> in development like production MongoDB?</p>
  <p>a java class that I persist is:</p>
  <pre><code>Class AuditDocument{
  
      @Id
      private String id;
      @NotNull
      private String creatorUsername;
      @CreatedDate
      private Date createDate;
  }
  </code></pre>
  <p>document in development MongoDB that createDate is -3:30 from current time:</p>
  <pre><code>{
      &quot;_id&quot; : ObjectId(&quot;5f697ee483eede29e2c13a2d&quot;),
      &quot;creatorUsername&quot; : &quot;superadmin&quot;,
      &quot;createDate&quot; : ISODate(&quot;2020-09-22T04:34:44.798Z&quot;),
  }
  </code></pre>