Padding Padding
Janet
Systems
 Register  Login 
Telephone  01628 566 178
Website Design, Hosting and Software Services
  Search 
Padding
corner Padding corner
Padding Padding
corner Padding corner
 DotNetNuke Articles

IE7 has introduced an error in the use of the pop-up calendar control. When dates are transferred from the popup calendar (date clicked) the resultant value in the text box is rendered in American date format (mm/dd/yyyy) rather than the localised version, for example English (dd/mm/yyyy).

This bug is reported more fully in the Gemini bug database http://support.dotnetnuke.com/issue/ViewIssue.aspx?ID=4506

The offending line is the setting of the anchorval in the function calPopupSetData

if(((weekDay+7-popCalFirstDayWeek)%7 != calDay) || (monthDate > lastDate))
  {
   popCalData+=("
");
    continue;
  }
  else
  {
  anchorVal = "
window.opener.closeCalPopup()\">";
  jsVal = "javascript:window.opener.calPopupSetDate(window.opener.popCalDstFld,'" + constructDate(monthDate,thisMonth+1,thisYear) + "');
   window.opener.closeCalPopup()";

    popCalData += ("");

  if ((firstDay.getMonth() == dtToday.getMonth()) && (monthDate == dtToday.getDate()) && (thisYear == dtToday.getFullYear()) )
  popCalData += (anchorVal+fnt[2]+monthDate+"");
  else
    popCalData += (anchorVal+fnt[1]+monthDate+"");

  weekDay++;
  monthDate++;
  }

The modified line is as below:

anchorVal = "

Note that the above was taken from DNN3.3.7. Please ensure that you have a backup of the original version before implementing the changes described above.

NAT August 2007


This article viewed: 173 times Back

Copyright © 2004-2007 Janet Systems Ltd.

 Print   

For DotNetNuke modules and skins take a look at:

Snowcovered

DotNetNuke Website design and hosting from £15.00 per month. More...

Looking for a website design company in the Thames Valley, call us on 01628 566178

DotNetNuke Modules
DotNetNuke Modules availalble from Janet Systems

DotNetNuke Skins
DotNetNukeSkins.gif

from Janet Systems

Padding
Copyright 2002-2008 Janet Systems Ltd.   Terms Of Use  Privacy Statement Saturday, May 17, 2008