Skip to content

Commit 9b16d0e

Browse files
committed
minor
1 parent e540fc2 commit 9b16d0e

File tree

1 file changed

+1
-0
lines changed
  • services/static-webserver/client/source/class/osparc/ui/basic

1 file changed

+1
-0
lines changed

services/static-webserver/client/source/class/osparc/ui/basic/DateAndBy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ qx.Class.define("osparc.ui.basic.DateAndBy", {
8080
const label = this.getChildControl("date-text");
8181
const today = new Date();
8282
const yesterday = new Date();
83+
yesterday.setDate(yesterday.getDate() - 1);
8384
if (today.toDateString() === value.toDateString()) {
8485
label.setValue(osparc.utils.Utils.formatDateAndTime(value)); // show date and time
8586
} else if (yesterday.toDateString() === value.toDateString()) {

0 commit comments

Comments
 (0)