I just encoutered one small problem
The first column currently counts from 1 to 24.
But I need it to count from the current hour to the current hour plus 24.
For example, in my timezone its now 21:15.
The first column should look like this:
21:00
22:00
23:00
00:00
01:00
02:00
03:00
etc.
etc.
I tried modifying the original code, but it didnt work out very well.
Because $calc($date(HH) + 24) would return 45 in the above example...
on *:DIALOG:hour_grid:INIT:*: {
var %boxname = 1
var %starting-hour = $date(HH)
var %ending-hour = $calc($date(HH) + 24)
while (%starting-hour < %ending-hour) {
did -ra $dname %boxname %starting-hour
inc %boxname
inc %starting-hour
}
}
Can anyone tell me how to get that part working?
Thx in advance.