Page MenuHomePhabricator

time off by 1 hour, when viewing calender events in "tabular view"
Closed, InvalidPublic

Description

When I create an event in calendar, such as

15-DEC-2016 at 11:00

everything looks OK. But when I view my events in the "tabular view", ie:

{{davcaltable>id=calendar:start,startdate=today,numdays=3650,onlystart=true,sort=asc}}

this event is actually displayed as:

2016-12-15 10:00

the time is wrong by one hour. Is that due to timezone ? I am using CET, both on my server and on my client. Perhaps the time is being interpreted as GMT, and therefore -1 hour ?

Event Timeline

If you read through the documentation, you will find the option "timezone" which should solve your problem.

PHP can't, unlike JavaScript, know your client's timezone. Therefore, you need to specify that as an option. I'll make the documentation more clear on this.