fix: actually fix timestamp format entry.js
This commit is contained in:
parent
28673648e7
commit
a9ed226313
2 changed files with 2 additions and 2 deletions
|
|
@ -112,7 +112,7 @@ function extractTokenFromQuery(url) {
|
|||
|
||||
// Generate ISO timestamp string
|
||||
function nowString() {
|
||||
return new Date().toISOString().replace("T", " ").replace("Z", "");
|
||||
return new Date().toISOString();
|
||||
}
|
||||
|
||||
// Helper to get env var with fallback
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ impl NumberOrString {
|
|||
}
|
||||
|
||||
async fn touch_cipher_updated_at(db: &D1Database, cipher_id: &str) -> Result<(), AppError> {
|
||||
let now = Utc::now().format("%Y-%m-%dT%H:%M:%S%.3fZ").to_string();
|
||||
let now = now_string();
|
||||
query!(
|
||||
db,
|
||||
"UPDATE ciphers SET updated_at = ?1 WHERE id = ?2",
|
||||
|
|
|
|||
Loading…
Reference in a new issue