I’m trying to use timeblock and it works when I use this:
scheduler.blockTime({
days: 3,
zones: [0,8*60],
});
but not when I use this:
scheduler.blockTime({
start_date: new Date(2012,10,09),
end_date: new Date(2012,10,09),
zones: [0,8*60],
});
It seems pretty straight forward but I can’t figure out why it won’t work when i use dates. any suggestions?
thanks
Ilya
#2
Hello,
If you use start and end dates when zones option will be ignored. You can rewrite your block following way:
scheduler.blockTime({
start_date: new Date(2012, 10, 9, 0),
end_date: new Date(2012, 10, 9, 8),
});
Even more straightforward
Kind regards,
Ilya
I cut and pasted that but it still doesn’t show as blocked, any thoughts?
thanks
Ilya
#4
Works just fine locally.
Though be sure to remove trailing comma:
end_date: new Date(2012, 10, 9, 8),
Also remember that month count start with 0, so 10 = November.
Best regards,
Ilya