sproctor / php-calendar

PHP-Calendar
http://www.php-calendar.org/
Apache License 2.0
140 stars 67 forks source link

Modify Occurrence Problem always 12:00 AM to 12:00 AM #101

Closed sessionbug closed 10 years ago

sessionbug commented 10 years ago

when i add an event daily for 20 days or some days, i choose "time type: full day" and time boxes dissappear, it is ok. after add full day event it is added for 20 days so it is ok, but when i try to "Modify Occurrence" choosing "time type: normal" and set time for this occurrence but time doesn't change, it shows 12:00 AM to 12:00 AM. all of these are like that, please fix this bug thanks.

note: on mysql at occurrences table when i set null for start_date and end_date column it is ok but it must be on script. problem is at "Modify Occurrence"

sproctor commented 10 years ago

What version are you using? This works as expected on 2.0.5. It possible that I'm not understanding what you expect the results to be.

Also, if you're changing the start time without changing the end time, you'll end up with an invalid event and you'll get a message saying such.

sessionbug commented 10 years ago

php-calendar-2.0.5 version and problem is that: 1- Add an event and choose Time Type:Full Day and submit event 2- Click added event and click "Modify Occurrence" (don't click "Modify") because problem at "Modify Occurrence" 3- Choose Time Type:Normal and change time for example: 08:00 AM to 03:00 PM and Submit Occurence 4- See the result time is: 12:00 AM to 12:00 AM ---- not 08:00 AM to 03:00 PM

it returns always: 12:00 AM to 12:00 AM

sproctor commented 10 years ago

I'm missing something because I cannot repeat this bug.

Can you repeat this on the demo calendar? What web browser are you using? What version of PHP and MySQL are you using?

sessionbug commented 10 years ago

Please check this TEST SESSIONBUG by guest When: Apr 20, 2014 at 12:00 AM to 12:00 AM

and please click "Modify Occurrence" below link change time type:normal and change time

http://www.php-calendar.org/php-calendar/index.php?phpcid=1&action=display_event&oid=4042

sproctor commented 10 years ago

Sorry, been a long day, my reading comprehension isn't great. Working on it now.

sessionbug commented 10 years ago

i hope you can fix it immediately :)) thanks.

sessionbug commented 10 years ago

if you fix this bug please tell us one by one which files and which codes are changed and which codes should replace with new codes. Because i don't want to install script from the beginning. Thank you very much.

sproctor commented 10 years ago

Fixed by commit 2140cbd. You can just replace the phpcdatabase.class.php file.