@@ -24,15 +24,15 @@ use std::fmt::{Display, Formatter};
24
24
use std:: sync:: Arc ;
25
25
26
26
use _serde:: ViewMetadataEnum ;
27
- use chrono:: { DateTime , MappedLocalTime , TimeZone , Utc } ;
27
+ use chrono:: { DateTime , Utc } ;
28
28
use serde:: { Deserialize , Serialize } ;
29
29
use serde_repr:: { Deserialize_repr , Serialize_repr } ;
30
30
use uuid:: Uuid ;
31
31
32
32
use super :: view_version:: { ViewVersion , ViewVersionId , ViewVersionRef } ;
33
33
use super :: { SchemaId , SchemaRef } ;
34
34
use crate :: catalog:: ViewCreation ;
35
- use crate :: error:: Result ;
35
+ use crate :: error:: { timestamp_ms_to_utc , Result } ;
36
36
37
37
/// Reference to [`ViewMetadata`].
38
38
pub type ViewMetadataRef = Arc < ViewMetadata > ;
@@ -238,8 +238,8 @@ impl ViewVersionLog {
238
238
}
239
239
240
240
/// 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 )
243
243
}
244
244
}
245
245
0 commit comments