feat: sane date format
This commit is contained in:
parent
c12975926d
commit
4c710dcd20
4 changed files with 17 additions and 13 deletions
|
|
@ -278,10 +278,10 @@ mod get {
|
|||
input name="periodicity" id="periodicity" value=(format!("{:#}", contact.periodicity));
|
||||
span .hint { code { "[0-9]+ (yr|mo|wk|day|h|m|s)" } "(" a href="https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing" { "details" } ")" }
|
||||
}
|
||||
label { "birthday" }
|
||||
label for="birthday" { "birthday" }
|
||||
div {
|
||||
input name="birthday" value=(contact.birthday.clone().map_or("".to_string(), |b| b.serialize()));
|
||||
span .hint { code { "(yyyy|--)mmdd" } " or free text" }
|
||||
input name="birthday" id="birthday" value=(contact.birthday.clone().map_or("".to_string(), |b| format!("{b}")));
|
||||
span .hint { code { "(yyyy-)?mm-dd" } " or free text" }
|
||||
}
|
||||
label for="manually_freshened_on" { "freshened" }
|
||||
div x-data=(json!({ "date": mfresh_on_str, "stamp": mfresh_at_str })) x-init="today = () => (new Date().toISOString().split('T')[0])" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue