Download & Extend

Event Start and End date year entry reverts to original value for some years/ranges

Project:Event
Version:6.x-2.x-dev
Component:User interface
Category:bug report
Priority:minor
Assigned:Unassigned
Status:active
Issue tags:end date, start date, year, year range

Issue Summary

I'm having some strange issues with the Event module when attempting to set an End Date.

'Event has time' is unchecked
Start date is set to 19 August 2010

If I check 'Event has end date' then enter 19 August 2038 upon saving the node, the end date reverts back to the above start date.

If however I enter 19 August 2036 it seems to hold. I tested this to check it wasn't a random range limitation but had varying results!

Anyone have ANY ideas here at all, It's driving me a little batty!

Comments

#1

Priority:major» minor

Ok,

A colleague came to the party.

"The valid range of a timestamp is typically from Fri, 13 Dec 1901 20:45:54 UTC to Tue, 19 Jan 2038 03:14:07 UTC. (These are the dates that correspond to the minimum and maximum values for a 32-bit signed integer.) Additionally, not all platforms support negative timestamps, therefore your date range may be limited to no earlier than the Unix epoch. This means that e.g. dates prior to Jan 1, 1970 will not work on Windows, some Linux distributions, and a few other operating systems. PHP 5.1.0 and newer versions overcome this limitation though. "

http://php.net/manual/en/function.strtotime.php

Guess this is ultimately the cause of the issue. What should happen with the status of this now ? Anyone ?

C