date time issue

Scott on 11/11/2016 4:03 PM

Scott on 3/27/2017 1:59 PM


0 (hrs)


It seems when a person EDITS an event on their calendar, it doesn't validate it first.  Can you please make sure dates validate on the UI before allowing them to post to the controller?

Calendar > View Event > Edit Event




HTTP_HOST league.rdnation.com
PATH_INFO /Calendar/event/edit/league/2d8304dc1e914c92ae0fa3f9844aab2c/26a6eed3831740959e9fb60c52440c7b
ALL_RAW Cache-Control: max-age=0 Connection: keep-alive Content-Length: 670 Content-Type: application/x-www-form-urlencoded Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Accept-Encoding: gzip, deflate Accept-Language: en-US Cookie: ASP.NET_SessionId=nissz2kac1l3gdxjnmojfy21; .ASPXAUTH=8737B8C8CD645FB65A10706F08FD04FD7B2E7E9F297FD186DCE2B7DA703CE32115B91408DDE66B7372A77AF2AEA3BB5DD3F6DE0752E017FC908F2D9561955F99F69BE252E2D30E8DDD587FEB59F8756CCF1F4CE6DC5B136149E77E7E38F920E6E7EAAFCB9DBB9D4FCEDD866D72B4E55C02E29165364552FD7D1E68E8B6569D0514A0A346E4C4ACB43FF3F3B51952AF26862CF410D1C1A8D3921E2BA71639D3D0E48DD3F3; cdva_platfrm=android; _gat=1; _ga=GA1.2.41927076.1456514417 Host: league.rdnation.com Referer: https://league.rdnation.com/calendar/event/edit/league/2d8304dc1e914c92ae0fa3f9844aab2c/26a6eed3831740959e9fb60c52440c7b?m=10&y=2016 User-Agent: Mozilla/5.0 (Linux; Android 6.0.1; SM-G920T Build/MMB29K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/54.0.2840.68 Mobile Safari/537.36 Origin: https://league.rdnation.com Upgrade-Insecure-Requests: 1 X-Requested-With: com.rdnation.rdnation
URL https://league.rdnation.com/Calendar/event/edit/league/2d8304dc1e914c92ae0fa3f9844aab2c/26a6eed3831740959e9fb60c52440c7b
URL_REFFERER https://league.rdnation.com/calendar/event/edit/league/2d8304dc1e914c92ae0fa3f9844aab2c/26a6eed3831740959e9fb60c52440c7b?m=10&y=2016

String was not recognized as a valid DateTime.

at System.DateTime.Parse(String s, IFormatProvider provider) at System.Convert.ToDateTime(String value, IFormatProvider provider) at RDN.League.Controllers.CalendarController.EditEvent(NewCalendarEvent eventUpdated) in C:\Personal\rdnation\RDN.League\Controllers\Controls\CalendarController.cs:line 254  

Additional Information: 05/06/2017 03:00 pm,05/06/22017 0:00 pm
Skip Navigation Links

Scott Wednesday, January 04, 2017 8:28 PM #

I like that you don't allow them to edit manually, but please remove the ICON from the mouse cursor when hovering over it.

Also, I think a button is also needed at the end of the form field.  A button with the calendar on it, so if they can't click on the form field, they can at least click on the button with the calendar icon.  Please make sure this button is attached to the field just like a form group is on other fields.


Scott Tuesday, December 20, 2016 8:08 PM #

this is what the user picked.

05/06/2017 03:00 pm,05/06/22017 0:00 pm


Is there any way they can choose such?


Dharmesh Tuesday, December 20, 2016 4:06 AM #

Scott, I checked many times for this issue. But I am not able reproduce this issue.

There is datetimepicker to pick date and time. So there will not be any issue and do not need to validate on client side.

I think there may have timezone issue. So date can not convert to valid date and time.

Let me know if you have any suggestions for this.



Powered by BugNET 1.6.339.0