diff options
author | Felipe Baltor <fbaltor@gmail.com> | 2024-05-23 08:59:11 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-23 13:59:11 +0200 |
commit | fa1ba256d20236042455abb31a92d2a1d27ee58f (patch) | |
tree | cd81e32852e4762f38fffb29ce462f09eab0f0e9 /tests/integration/jupyter_tests.rs | |
parent | fa273509771c01d603d403002481bc1d01e4dd8b (diff) |
refactor: remove custom `utc_now` in favor of `chrono::Utc:now` feature (#23888)
This PR removes the use of the custom `utc_now` function in favor of the
`chrono` implementation. It resolves #22864.
---------
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'tests/integration/jupyter_tests.rs')
-rw-r--r-- | tests/integration/jupyter_tests.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/integration/jupyter_tests.rs b/tests/integration/jupyter_tests.rs index c7b2712e8..e0733d5a3 100644 --- a/tests/integration/jupyter_tests.rs +++ b/tests/integration/jupyter_tests.rs @@ -25,9 +25,6 @@ use zeromq::SocketRecv; use zeromq::SocketSend; use zeromq::ZmqMessage; -// for the `utc_now` function -include!("../../cli/util/time.rs"); - /// Jupyter connection file format #[derive(Serialize)] struct ConnectionSpec { @@ -138,7 +135,7 @@ impl Default for MsgHeader { Self { msg_id: Uuid::new_v4(), session: Uuid::new_v4(), - date: utc_now(), + date: chrono::Utc::now(), username: "test".into(), msg_type: "kernel_info_request".into(), version: "5.3".into(), |