File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,9 @@ pub async fn upload_file(
5454 . into_response ( ) ;
5555 }
5656
57- let now = Utc :: now ( ) ;
57+ let now = Utc :: now ( )
58+ . timestamp_nanos_opt ( )
59+ . expect ( "Failed to get timestamp" ) ;
5860 let language = match Language :: from_filename ( & filename) {
5961 Ok ( lang) => lang,
6062 Err ( e) => {
Original file line number Diff line number Diff line change 11use crate :: errors:: LanguageError ;
22
3- use chrono:: { DateTime , Utc } ;
43use serde:: { Deserialize , Serialize } ;
54use std:: { collections:: HashMap , sync:: LazyLock } ;
65
@@ -11,8 +10,8 @@ pub struct FileMetadata {
1110 pub language : Language ,
1211 pub category : String ,
1312 pub size : u64 ,
14- pub created_at : DateTime < Utc > ,
15- pub updated_at : DateTime < Utc > ,
13+ pub created_at : i64 ,
14+ pub updated_at : i64 ,
1615}
1716
1817#[ derive( Debug , Deserialize ) ]
You can’t perform that action at this time.
0 commit comments