Ouch, tunnel vision, got what I deserved..... Yes thanks Kevin. Problem with Firefox 8.0.1 on Intel MAC.
All is good in FF3.6.28 on PPC MAC, 16.0.2 on Intel MAC, Safari 4.1.3 on MAC PPC, Safari 5.1.2 on Intel MAC and IE8 on Windows PC. Sorry to waste discussion space.
Thanks for the excellent plugin... and your time
Rusty
If someone still have this problem with newest version:
in model.php find lines, where $event->start_date and $event->end_date are set.
Then replace fragments like that:
$start_date_text = get_input('start_date');
if($start_date_text && isValidTimeStamp($start_date_text)){
$event->start_date = $start_date_text;
}
else{
$event->start_date = time();
}
$end_date_text = get_input('end_date');
//$event->original_end_date = get_input('end_date');
if ($end_date_text && isValidTimeStamp($end_date_text)) {
$event->end_date = $end_date_text;
//$event->munged_end_date_string = $end_date_text." ".date_default_timezone_get();
} else {
$event->end_date = time();
}
I've added here function isValidTimestamp, because when you do not choose a date, it will not be set to timestamp, so it will be 1960 year. If user dont choose date - we have an event today. isValidTimestamp:
function isValidTimeStamp($timestamp){
return ((string) (int) $timestamp === $timestamp)
&& ($timestamp <= PHP_INT_MAX)
&& ($timestamp >= ~PHP_INT_MAX);
}
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.