Umstellung auf UTC Timestamp
This commit is contained in:
1 parent
6154bf833e
commit
ac6c468870
10 files changed
+41
-107
No files matched your search
+1
-1
@@ -456,7 +456,7 @@ class DecimalTextInputFormatter extends TextInputFormatter {
|
||||
}
|
||||
|
||||
bool isJobTooFarInFuture(Job job) {
|
||||
var ordertime = DateTime.parse(job.ordertime).toUtc().millisecondsSinceEpoch;
|
||||
var ordertime = job.ordertime * 1000; // convert seconds to milliseconds
|
||||
var dateTimeThreshold = DateTime.now().add(Duration(minutes: job.offsWarn)).toUtc().millisecondsSinceEpoch;
|
||||
|
||||
return ordertime > dateTimeThreshold;
|
||||
|
||||
Reference in new issue
Block a user