add dn42 disclaimer

This commit is contained in:
hex 2024-08-17 15:01:30 +02:00
parent 261cc2c7be
commit e30a136cc2
4 changed files with 95 additions and 48 deletions

View file

@ -51,11 +51,11 @@ fn post_guest_message(name: &str, body: &str) {
let messages = guest_json["messages"]
.as_array_mut()
.expect("Object is not an array?");
let date = Local::now().format(DATE_TIME_FORMAT);
let date = Local::now();
messages.push(json!({
"name": name,
"body": body,
"date": date.to_string(),
"date": date.timestamp(),
}));
let mut file = File::create(GUEST_MESSAGES).expect("Couldn't read msgs");
file.write_all(guest_json.to_string().as_bytes()).expect("wah");