YAFNET / YAFNET-DNN

YAF.NET (aka Yet Another Forum.NET) v3 for DNN
https://yetanotherforum.net/
Apache License 2.0
20 stars 13 forks source link

YAF-DNN v2.2.4.5-5811 - Editing User Time-zone causes error #41

Closed JaySMa closed 6 years ago

JaySMa commented 6 years ago

Hello.. I'm going through making sure the board admins are configured correctly and have found that the users Time Zones show up as UTC -12:00. I checked within the yaf_users table and for the TimeZone they all show -300.

If I try and change them within the User Profile, I get an error and below shows up within the DNN event log.

Thank you for your time and attention..

AbsoluteURL:/Default.aspx DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke ExceptionGUID:d411618b-d0db-4853-ab34-3c0f3d3c27d3 AssemblyVersion:9.1.1 PortalId:0 UserId:1 TabId:71 RawUrl:/Forum/g/admin_edituser/u/9 Referrer:http://YafForumTest/Forum/g/admin_edituser/u/9 UserAgent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36 OPR/49.0.2725.47 ExceptionHash:HwjfICmuhRpejaCWaN5VnCtw++8= Message:Input string was not in a correct format. StackTrace: InnerMessage:Input string was not in a correct format. InnerStackTrace: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.String.System.IConvertible.ToInt32(IFormatProvider provider) at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) at YAF.Types.Extensions.ObjectExtensions.ToType[T](Object instance) at YAF.Controls.EditUsersProfile.UpdateProfile_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Source: FileName: FileLineNumber:0 FileColumnNumber:0 Method: Server Name: DevServer

w8tcha commented 6 years ago

Sorry looks like again i forgot to update all code, issue is fixed in latest build 5812