We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 873afc4 commit 6d8316cCopy full SHA for 6d8316c
src/cookie-manager/cookie_manager_views.js
@@ -432,11 +432,9 @@ cls.CookieManager.CookieManagerViewBase = function()
432
433
// Fix expires value, work around CORE-47780: .value property of <input type=datetime-local>
434
// element has two digits representing milliseconds, instead of three.
435
- var expires_parts = expires.split(".");
436
- if (expires_parts[1] && expires_parts[1].length < 3)
437
- {
+ if (/.\.\d{2}$/.test(expires))
438
expires += "0";
439
- }
+
440
expires = new Date(expires || 0).getTime();
441
442
var object_id = edit_tr.getAttribute("data-object-id");
0 commit comments