diff options
author | Chad Little <clittle@users.sourceforge.net> | 2003-11-14 05:47:26 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2003-11-14 05:47:26 +0000 |
commit | 0d9fd128a50080c04825dfc9dfd5cbba82901b97 (patch) | |
tree | 599a2b47fe1a9f8fb9a7bf29e4b1aee01618a9ac /functions | |
parent | ef384f180b9e61d9a3edd7629d8793a4245d18cd (diff) | |
download | phpicalendar-0d9fd128a50080c04825dfc9dfd5cbba82901b97.tar.gz phpicalendar-0d9fd128a50080c04825dfc9dfd5cbba82901b97.tar.bz2 phpicalendar-0d9fd128a50080c04825dfc9dfd5cbba82901b97.zip |
Moved duration figuring out to the beginning of END:VEVENT.
Diffstat (limited to 'functions')
-rw-r--r-- | functions/ical_parser.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php index b9c5a6f..4780d59 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -116,6 +116,9 @@ foreach ($cal_filelist as $filename) { } elseif ($line == 'END:VEVENT') { + $end_unixtime = $start_unixtime + $the_duration; + $end_time = date ('Hi', $end_unixtime); + // CLASS support if (isset($class)) { if ($class == 'PRIVATE') { |