fix: actually fix timestamp format entry.js

This commit is contained in:
qaz741wsd856 2025-12-08 18:31:37 +00:00
parent 28673648e7
commit a9ed226313
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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",