mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
WebUI: use static method for getting time
Unify API usage across the code base. PR #23077.
This commit is contained in:
@@ -1505,7 +1505,7 @@ window.qBittorrent.DynamicTable ??= (() => {
|
||||
td.title = "∞";
|
||||
}
|
||||
else {
|
||||
const formattedVal = "QBT_TR(%1 ago)QBT_TR[CONTEXT=TransferListDelegate]".replace("%1", window.qBittorrent.Misc.friendlyDuration((new Date() / 1000) - val));
|
||||
const formattedVal = "QBT_TR(%1 ago)QBT_TR[CONTEXT=TransferListDelegate]".replace("%1", window.qBittorrent.Misc.friendlyDuration((Date.now() / 1000) - val));
|
||||
td.textContent = formattedVal;
|
||||
td.title = formattedVal;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user