All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit c2cb4eba authored by Leigh B Stoller's avatar Leigh B Stoller

Fix off by 1 day error. Need to support extensions less then 1 day,

something for my stack of tasks.
parent 3a1f4ac0
......@@ -468,8 +468,8 @@ $(function ()
if (exp.getTime() > max.getTime()) {
var m1 = moment(exp.getTime());
var m2 = moment(max.getTime());
var diff = m1.diff(m2, "days");
var diff = Math.ceil(m1.diff(m2, "hours") / 24);
alert("Granting this full extension would violate the " +
"current maximum allowed extension by " + diff + " days. " +
"Granting the extension can potentially throw the " +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment