killemov / Shift

A minimalistic approach to maximum control of your Transmission. (Web UI)
https://forum.transmissionbt.com/viewtopic.php?f=8&t=12555
260 stars 20 forks source link

ETA vs Done Date #18

Closed mhbates closed 5 years ago

mhbates commented 5 years ago

The instructions at the bottom of the manual work for showing the done/completed date of finished torrents, but not the ETA of torrents currently downloading. How do you show the ETA?

killemov commented 5 years ago

Changed README.md to show a proper example of ETA.

mhbates commented 5 years ago

Thank you! One thing to note for whoever does this, you'll need to also add this to the css:

col.eta {
  width: 152px;
}
mhbates commented 5 years ago

One more note: The ETA will be in UTC time, so it will need to be adjusted for your time zone. So if you're UTC-3, it would be:

return seconds ? renderDateTime( (Date.now() / 1000 + seconds) - 10800 ) : "";

Where the "- 10800" is 3 hours converted to seconds.