2
Vote

British date error when adding Product Entry

description

In the Product Entry page, the date appears to be displayed in British format (dd/mm/yy) - however, when clicking "Apply", an "Arithmetic overflow error" is returned if same UK format is submitted. Submitting the date in US format avoids the error, but then shows a "*#" next to the date entry (suggesting it's in the incorrect format?"
 
This fresh install of Tackle 1.02 with the Master Page update is running on Windows XP Pro (2002) with IIS. The browser is Firefox 2.0.0.11 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11)

file attachments

comments

tinu44 wrote Jan 10, 2008 at 12:37 PM

Same problem with "de-CH" culture (which uses dd.mm.yyyy).

tinu44 wrote Jan 10, 2008 at 12:46 PM

I was able to work around the problem by replacing the "Release Date" Textbox with a Calendar control.

To do this, change the following lines in ProductEntry.aspx:

original version (lines 51-59):

<EditItemTemplate>
<asp:TextBox ID="TextBox2"
...

</EditItemTemplate>

replace with:

<EditItemTemplate>
<asp:Calendar ID="Calendar1" runat="server" SelectedDate='<%# Bind("ReleaseDate") %>'></asp:Calendar>

</EditItemTemplate>

wrote Feb 14, 2013 at 3:42 AM