A fix for lonely single day all day events

More thought has happened overnight (isn’t the brain amazing how it can sleep and think at the same time!) …

Re the isolated all day events appearing on a day all by themselves without the partial day events….. the startdate plus one second is the way to go!

A fix till the next update in a few days:

If you are able to edit the php files, then in file amr-ical-events-list.php of version 2.5.10, around line 1456, change the last zero before the bracket to a 1.  This says to start the startdate at the first second of the day, not at 00:00:00.

Add a second so the day starts 00:00:01, not at 00:00:00

Add a second so the day starts 00:00:01, not at 00:00:00

The effect is shown on my test system here with a quick sort of similar configuration to what tenbury have:

On the current day - no lonely all day events from the previous day .....

On the current day - no lonely all day events from the previous day .....

Jump back in time

Note

  • the “history” styling here is so pale it is hard to tell the difference, But Nov 10 and some of the Nov 11 events have passed so are slightly greyed out
  • there is no special all day styling (using the allday class tag) – just the lack of a start time
One day's history - no lonely events here either

One day's history - no lonely events here either

Share or Save:
  • RSS
  • del.icio.us
  • Twitter
  • Digg
  • Slashdot
  • Technorati
  • Google Bookmarks
  • StumbleUpon
  • Facebook

Related posts:

  1. All day events from the previous day displaying…
  2. Ical Events List 2.3.9
  3. Version 2.6.12 Minor bug fix for dates at end of year on older php
  4. Ical (Events, to do’s etc) styling with css hooks
  5. Version 2.6.2 – dates localised the wp way and more options

This entry was posted in Ical RFC5545 / 2445, Notes, Testing and tagged . Bookmark the permalink.

One Response to A fix for lonely single day all day events

  1. Chris says:

    I am abundantly grateful! Thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>