vainas
This commit is contained in:
1 parent
ab9c116859
commit
233ba93a50
2 files changed
+2
-15
No files matched your search
Binary file not shown.
+2
-15
@@ -171,23 +171,10 @@
|
||||
|
||||
}
|
||||
|
||||
function setDatetime(newDatetime) {
|
||||
function setDatetime(pDatetime) {
|
||||
|
||||
/* If there is a change in the day, then we take some actions, otherwise, we dont. */
|
||||
datetime = pDatetime;
|
||||
|
||||
let currentDate = Math.trunc(datetime.valueOf() / ONE_DAY_IN_MILISECONDS);
|
||||
let newDate = Math.trunc(newDatetime.valueOf() / ONE_DAY_IN_MILISECONDS);
|
||||
|
||||
datetime = newDatetime;
|
||||
|
||||
if (currentDate !== newDate) {
|
||||
|
||||
if (timePeriod <= _1_HOUR_IN_MILISECONDS) {
|
||||
|
||||
fileCursorCache.setDatetime(newDatetime);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function draw() {
|
||||
|
||||
Reference in new issue
Block a user