Skip to content

Commit

Permalink
fix: [torrust#56} default user registration date with time
Browse files Browse the repository at this point in the history
When we import users from previous versions where the app did not store
the registration date we assign the current datetime for the registration.
  • Loading branch information
josecelano committed Nov 30, 2022
1 parent dd949fa commit 35f1e37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/upgrades/from_v1_0_0_to_v2_0_0/upgrader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use crate::config::Configuration;

fn today_iso8601() -> String {
let dt: DateTime<Utc> = SystemTime::now().into();
format!("{}", dt.format("%Y-%m-%d"))
format!("{}", dt.format("%Y-%m-%d %H:%M:%S"))
}

async fn current_db() -> Arc<SqliteDatabaseV1_0_0> {
Expand Down

0 comments on commit 35f1e37

Please sign in to comment.