Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
Hi,
I try to build a calendar from this tutorial: https://docs.couchcms.com/concepts/events-calendar.html
Now I have the problem that the today class is one day too far from today.
Code: Select all
<cms:if k_timeline_position='present'>
    <cms:set tdclass='today' />
<cms:else />
    <cms:set tdclass='' />
</cms:if>


as example I have the 27th of April but the class is set on the 28th.
Is this a servertime problem? How can I check this?

Cheers

I check the server date with `date` on the terminal.
The date and time is concurent to my local time so I don't understand why the calender is showing the wrong day some hours to early?
Have someone another idea? Is there something in Couch where a basetime is set like in wordpress?

Are you sure you have set the correct GMT offset in couch/config.php?
Code: Select all
    // 2.
    // Your Time Zone
    // Example values (note how :15, :30, :45 will be entered as .25, .5 and .75 respectively):
    // +12.75 New Zealand (UTC+12:45)
    // +8.75  Australia (UTC+08:45)
    // +5.5   India (UTC+05:30)
    // +1     Germany (UTC+01:00)
    // 0      United Kingdom (UTC±0)
    // -2     Brazil (UTC-02:00)
    // -4.5   Venezuela (UTC-04:30)
    // -6     United States (Central Time) (UTC-06:00)
    // -8     United States (Pacific Time) (UTC-08:00)
    define( 'K_GMT_OFFSET', +5.5 );
3 posts Page 1 of 1