Omega359 commented on PR #18615:
URL: https://github.com/apache/datafusion/pull/18615#issuecomment-3528978519

   timezone parsing, don't do it manually. Use chrono:
   
   ```Rust
   use chrono::TimeZone;
   use chrono_tz::Tz;
   use chrono_tz::UTC;
   
   let tz: Tz = "Antarctica/South_Pole".parse().unwrap();
   let dt = tz.ymd(2016, 10, 22).and_hms(12, 0, 0);
   let utc = dt.with_timezone(&UTC);
   assert_eq!(utc.to_string(), "2016-10-21 23:00:00 UTC");
   ```
   From https://github.com/chronotope/chrono-tz


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to