Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListError editing an existing entryError editing an existing entry
Previous
 
Next
New Post
12/6/2012 8:23 AM
 

Hello..

I have a form with the following configuration:
Active - True/False Type
Display on List

Bid Tab Year - Text Type
Required
Display on List
Default Value: [DateTime:Now|yyyy]
List of Values: 2020;2019;2018;2017;2016;2015;2014;2013;2012;2011;2010;2009;2008;2007;2006

Bid Date - Date Type
Required
Display on List
Output Format: MM/dd/yy

Tab Information - Rich Text (HTML) Type
Required
Display on List
Searchable

If I try to edit the existing entries in the form, I get the following error.  If I add a new entry, I can then go in and edit the new entry without any problems.  Thanks.. -Jeff

This is on the webpage:
Error: is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: The conversion could not be completed because the supplied DateTime did not have the Kind property set correctly. For example, when the Kind property is DateTimeKind.Local, the source time zone must be TimeZoneInfo.Local. Parameter name: sourceTimeZone ---> System.ArgumentException: The conversion could not be completed because the supplied DateTime did not have the Kind property set correctly. For example, when the Kind property is DateTimeKind.Local, the source time zone must be TimeZoneInfo.Local. Parameter name: sourceTimeZone at System.TimeZoneInfo.ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone, TimeZoneInfoOptions flags) at System.TimeZoneInfo.ConvertTimeFromUtc(DateTime dateTime, TimeZoneInfo destinationTimeZone) at DotNetNuke.Modules.UserDefinedTable.EditControl.ServerTime(String value) at DotNetNuke.Modules.UserDefinedTable.DataTypes.EditCreatedAt.set_Value(String value) at DotNetNuke.Modules.UserDefinedTable.EditForm.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

DNN Event Logs:
InnerException: The conversion could not be completed because the supplied DateTime did not have the Kind property set correctly. For example, when the Kind property is DateTimeKind.Local, the source time zone must be TimeZoneInfo.Local. Parameter name: sourceTimeZone


 
New Post
12/7/2012 5:40 AM
 

jeff,
please tell me the version of the module and of DotNetNuke. 
Does it happen to all users? Is the time zone set for the user which runs into the error?


 
New Post
12/10/2012 8:49 AM
 

I just saw the error occur again for another user on another portal.  They're trying to edit something with a date/time entry; which, I'm not sure.

We're running DNNPE version 06.02.03 and F&L version 6.0.4.

I was using my host account and it's preferred time zone is GMT -5 Eastern Time.  This other account for some reason had GMT -8 configured.  I just changed it to -5, so I'll continue to monitor the logs, but the errors are occurring.

Thanks..



 
New Post
12/10/2012 8:55 AM
 
With this latest error on another F&L module, there's isn't a date/time column at all. There's a true/false, seven text boxes (one is drop-down list), a rich-text box and a website URL.

I'm thinking this possibly is the created at/updated at time issue.

I'll do some testing (creating a new entry and compare with existing) and let you know.

Thanks..
 
New Post
12/10/2012 11:48 AM
 

Found out what the issue is.

At one time for some reason, the field values were putting the timezone information in them; e.g. 2012-02-22T00:00:00-05:00, whereas new entries show up as 2012-02-22T00:00:00.

Manually editing this out resolves this issue.  I've tried creating an update statement (see below; on our development server currently), but it's not working.  Any ideas?

UPDATE UserDefinedData
SET    FieldValue = replace(FieldValue, '-05:00', '')
WHERE  UserDefinedRowId LIKE '8626'

P.S.  There's 9,723 rows with the time zone inforamtion. :/

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListError editing an existing entryError editing an existing entry


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out