Ticket #2531828 (closed defect)

Reporter


Daniel Slack
Opened: 02/29/12
Last modified: 08/1/12
Status: closed
Type: defect
Resolution: fixed

Owner


Allen Rabinovich
Target Release: 3.6.0
Priority: P3 (normal)
Summary: setYear is deprecated
Description:

According to MDN (see URL), the setYear method on the Date object is deprecated in favor of setFullYear.

Type: defect Observed in Version: 3.4.1
Component: DataType-Date Severity: S4 (low)
Assigned To: Allen Rabinovich Target Release: 3.6.0
Location: Priority: P3 (normal)
Tags: Relates To:
Browsers: N/A
URL: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setYear
Test Information:

In on of my projects, I'm importing the base2 JS file (http://code.google.com/p/base2/). This library does a "fix" for IE5-7 where setYear and getYear are incremented and decremented (respectively)
by 1900. While using the Calendar widget, I noticed that for the "broken" browsers (including IE8 actually), I was getting years that were way off (1900 off).

Change History

Allen Rabinovich

YUI Developer

Posted: 03/30/12
  • milestone changed to 3.6.0
  • priority changed to P3 (normal)
  • status changed from new to accepted

Allen Rabinovich

YUI Developer

Posted: 05/8/12
  • estimated changed from 0 to 0.1
  • remaining changed from 0 to 0.1
  • sprint changed to sprint 2

Allen Rabinovich

YUI Developer

Posted: 06/7/12
  • completed changed from 0 to 0.1
  • remaining changed from 0.1 to 0

Allen Rabinovich

YUI Developer

Posted: 06/9/12
  • status changed from accepted to checkedin

Jenny Donnelly

YUI Developer

Posted: 08/1/12
  • resolution changed to fixed
  • status changed from checkedin to closed

Shipped in 3.6.0. Marking closed/fixed.