File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,15 +24,15 @@ use std::fmt::{Display, Formatter};
2424use std:: sync:: Arc ;
2525
2626use _serde:: ViewMetadataEnum ;
27- use chrono:: { DateTime , MappedLocalTime , TimeZone , Utc } ;
27+ use chrono:: { DateTime , Utc } ;
2828use serde:: { Deserialize , Serialize } ;
2929use serde_repr:: { Deserialize_repr , Serialize_repr } ;
3030use uuid:: Uuid ;
3131
3232use super :: view_version:: { ViewVersion , ViewVersionId , ViewVersionRef } ;
3333use super :: { SchemaId , SchemaRef } ;
3434use crate :: catalog:: ViewCreation ;
35- use crate :: error:: Result ;
35+ use crate :: error:: { timestamp_ms_to_utc , Result } ;
3636
3737/// Reference to [`ViewMetadata`].
3838pub type ViewMetadataRef = Arc < ViewMetadata > ;
@@ -238,8 +238,8 @@ impl ViewVersionLog {
238238 }
239239
240240 /// Returns the last updated timestamp as a DateTime<Utc> with millisecond precision.
241- pub fn timestamp ( self ) -> MappedLocalTime < DateTime < Utc > > {
242- Utc . timestamp_millis_opt ( self . timestamp_ms )
241+ pub fn timestamp ( self ) -> Result < DateTime < Utc > > {
242+ timestamp_ms_to_utc ( self . timestamp_ms )
243243 }
244244}
245245
You can’t perform that action at this time.
0 commit comments