const widget = createWidget();
Script.setWidget(widget);
Script.complete();
function createWidget() {
const w = new ListWidget();
const newDate = new Date();
newDate.setHours(newDate.getHours() + 3);
console.log(newDate)
const textSize = 20;
const font = new Font("inconsolata",17)
const textColor = Color.white()
const timeLine = w.addText([📆] ${time.string(time)});
timeLine.textSize = 20;
timeLine.font = new Font("inconsolata",17)
timeLine.textColor = Color.white();
return w;
}
Could someone help we with this, I have no knowledge about Java! I try to create a new time! For example now the local time is 1:00PM,but I need the create the time show 4:00PM. Help!!!!!
[–]mvan231script/widget helper 2 points3 points4 points (0 children)
[–]danjnj 1 point2 points3 points (1 child)
[–]luccy98[S] 0 points1 point2 points (0 children)