Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Issue: MaskedEditExtender incorrectly uses UTC for autocompleted Date [16724]

$
0
0
If the actual local date (e.g. in a GMT+10 time zone) is the first day of May, then if the autocomplete of a date is used before 10am, the MaskedEditExtender will show the month to be April - when it is actually May!

Solution:

The AutoFormatDate function in the MaskedEditExtender's MaskedEditBehaviour.js uses the Date object's getUTCMonth(), getUTCDate() getUTCFullYear() methods, when it should only use getMonth(), getDate() and getFullYear().
Comments: We are located in the Eastern time zone and after 7:00pm, the auto complete date is the next day instead of the current day.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>