add dn42 disclaimer
This commit is contained in:
parent
261cc2c7be
commit
e30a136cc2
4 changed files with 95 additions and 48 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue