Two minor bugfix for the endTime attribute feature.

Two commits is enough for a PL :)