When I use the Date (UNIX timestamp) field and I select an "All day" event,
the timestamp returned is the correct day, but the hour is 00:00:00 , seeing this is an all day event, shouldn't the timestamp being returned be set to 23:59:59?

Comments

arlinsandbulte’s picture

Status: Active » Closed (works as designed)

This is 'by design' in the date module (and has recently been modified a bit).

If the (new) Date All Day module is disabled, 'All Day' will never be shown.
If the (new) Date All Day module is enabled, date fields with only a Start Date are flagged as 'All Day' when the time is 00:00:00. Date fields with a Start & End Date are flagged as 'All Day' when Start & End date are the same and the time of both is 00:00:00.

See #874322: To Date & All Day Date Handling for ongoing discussion on this functionality.