Fix negative seconds by displaying 0 instead (#1445) (#1625)
authorzacharystenger <zackstenger@gmail.com>
Tue, 12 Feb 2019 08:16:15 +0000 (00:16 -0800)
committerChocobozzz <chocobozzz@cpy.re>
Tue, 12 Feb 2019 08:16:15 +0000 (09:16 +0100)
commitec24796ea83dbe15863c4f074844abbb4cdd5e08
tree2342c9f3aa15fdadf21f61bdee9c46b456f16e7b
parent7519127b5cb44095f78f6bf4c51d4ebf2b7d5e88
Fix negative seconds by displaying 0 instead (#1445) (#1625)

* Fix from-now.pipe.ts so it never displays negative seconds

* Apply the fix only when returning seconds. Remove redundant Math.floor operation
client/src/app/shared/misc/from-now.pipe.ts