* {now} bindings should probably work the same as now property in ShellScriptBaseClass
This commit is contained in:
parent
5830025d60
commit
c2ba403e99
|
@ -13,6 +13,7 @@ import static net.filebot.web.EpisodeFormat.*;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.LinkedHashSet;
|
import java.util.LinkedHashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -169,7 +170,7 @@ public class MediaBindingBean {
|
||||||
|
|
||||||
@Define("age")
|
@Define("age")
|
||||||
public Number getAgeInDays() {
|
public Number getAgeInDays() {
|
||||||
return TimeUnit.MILLISECONDS.toDays(getNow() - getReleaseDate().getTimeStamp());
|
return TimeUnit.MILLISECONDS.toDays(System.currentTimeMillis() - getReleaseDate().getTimeStamp());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Define("startdate")
|
@Define("startdate")
|
||||||
|
@ -699,8 +700,8 @@ public class MediaBindingBean {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Define("now")
|
@Define("now")
|
||||||
public long getNow() {
|
public Date getNow() {
|
||||||
return System.currentTimeMillis();
|
return new Date();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Define("defines")
|
@Define("defines")
|
||||||
|
|
Loading…
Reference in New Issue