Support » Plugin: Simple Calendar - Google Calendar Plugin » [if-not-today][when][/if-not-today]

  • [if-not-today][when][/if-not-today]
    [if-today][when][/if-today]

    Either of these syntaxes seems to mess up all the start times (all shown as 11:59pm throughout the calendar once either format is configured). This is in the list (agenda) mode. The finish times are shown OK. I’m using site default time format, like “4:01 pm”

    It’s possible it was triggered by having a recurring event in the calendar. However I cannot now get rid of the problem while using this syntax. All other calendars subscribing to the same data (Google web interface, various caldav clients) show data correctly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter hammersmithsociety

    (@hammersmithsociety)

    bump

    Thread Starter hammersmithsociety

    (@hammersmithsociety)

    bump bump

    Thread Starter hammersmithsociety

    (@hammersmithsociety)

    OK, so I fixed it myself as no response in 6 months! – see comment below
    In event-builder.php

    
    				case 'if-not-today' :
    					$start_dt   = $event->start_dt->setTimezone( $calendar->timezone );
    			/* RF avoid trashing the event start - use copy */
    					$startOfDay = $start_dt->copy()->startOfDay()->getTimestamp();
    					$endOfDay   = $start_dt->copy()->endOfDay()->getTimestamp();
    					$today = ( $startOfDay <= $calendar->now ) && ( $calendar->now <= $endOfDay );
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[if-not-today][when][/if-not-today]’ is closed to new replies.