title: How do I convert from Local timezone to UTC in Rust
body: <p>I am trying to convert my local time to UTC as below</p>
  <pre><code>fn main() {
  
      let nd_local = NaiveDate::from_ymd(2020,10,10).and_hms(10,10,10);
      let time_at_kolkata = Kolkata.from_local_datetime(&amp;nd_local);
  
  
      println!(&quot;KOLKATA_TIME {:?}&quot;, time_at_kolkata);
      println!(&quot;UTC TIME {:?}&quot;, time_at_kolkata.naive_utc());
  
  }
  </code></pre>
  <p>But it errors out as</p>
  <pre><code>println!(&quot;UTC TIME {:?}&quot;, time_at_kolkata.naive_utc());
     |                                               ^^^^^^^^^ method not found in `LocalResult&lt;DateTime&lt;Tz&gt;&gt;`
  </code></pre>
  <p>Here I am trying to convert it to <code>naive_utc</code>.
  But generally how do I convert my <code>Kolkata</code> datetime to a <code>DateTime&lt;Utc&gt;</code> instance ?</p>