title: How to skip jackson timezone correction in spring-mvc?
body: <p>I want to configure <code>jackson</code> to output any date/time values with the following format:</p>
  
  <p><code>spring.jackson.date-format=yyyy-MM-dd'T'HH:mm:ss</code></p>
  
  <p>I'm fetching many database rows and return them just as a <code>json</code> map.</p>
  
  <pre><code>@RestController
  public class MyService {
      @GetMapping
      public List&lt;Map&lt;String, Object&gt;&gt; get(Param params) {
               return jdbcTemplate.queryForList(sql, params);
      }
  }
  </code></pre>
  
  <p>Problem: the databases and jvm default timezone is <code>Europe/Berlin</code>, thus UTC+2. Therefor jackson automatically converts any database-received <code>java.sql.Timestamp</code> to UTC first (subtracts 2 hours), and then outputs them via json.</p>
  
  <p>In the <code>mysql</code> database itself, it's a <code>datetime</code> type.</p>
  
  <p>But I just want jackson to output the timestamps "as is", without prior conversion! Is that possible to skip timezone correction?</p>
  
  <p>I just want to ignore the timezone without conversation. Just cut it.</p>