v1.2.4
This commit is contained in:
@@ -238,9 +238,13 @@ namespace Saxonite.Net.Core.Web.Base.Models
|
||||
case SaxDbDfn_Core.ColumnIdx.Organisation_PhoneMain:
|
||||
case SaxDbDfn_Core.ColumnIdx.Organisation_PhoneAlt:
|
||||
return Math.Min(maxLength, 20);
|
||||
//case SaxDbDfn.ColumnIdx.UserAccount_Postcode:
|
||||
//case SaxDbDfn.ColumnIdx.ItemAddress_Postcode:
|
||||
// return Math.Min(maxLength, 16);
|
||||
//case SaxDbDfn.ColumnIdx.UserAccount_Postcode:
|
||||
//case SaxDbDfn.ColumnIdx.ItemAddress_Postcode:
|
||||
// return Math.Min(maxLength, 16);
|
||||
case SaxDbDfn_Core.ColumnIdx.Article_Headline:
|
||||
return Math.Min(maxLength, 2000);
|
||||
case SaxDbDfn_Core.ColumnIdx.Article_Summary:
|
||||
return Math.Min(maxLength, 1000);
|
||||
}
|
||||
return maxLength;
|
||||
}
|
||||
@@ -288,7 +292,14 @@ namespace Saxonite.Net.Core.Web.Base.Models
|
||||
}
|
||||
public DateTime ParseDateFromForm(String value)
|
||||
{
|
||||
return DateUtil.ParseExact(value, "dd-MMM-yyyy", SessionCulture);
|
||||
DateTime date = DateUtil.ParseExact(value, "dd-MMM-yyyy", SessionCulture);
|
||||
if (!date.IsValid())
|
||||
date = DateUtil.ParseExact(value, "dd-MMM-yyyy", CultureInfo.CurrentUICulture);
|
||||
if (!date.IsValid())
|
||||
date = DateUtil.ParseExact(value, "dd-MMM-yyyy", CultureInfo.CurrentCulture);
|
||||
if (!date.IsValid())
|
||||
date = DateUtil.ParseExact(value, "dd-MMM-yyyy", CultureInfo.InvariantCulture);
|
||||
return date;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user