Closed Bug 893695 Opened 11 years ago Closed 11 years ago

getYear() javascript function

Categories

(Firefox :: Untriaged, defect, P1)

22 Branch
x86
Windows XP
defect

Tracking

()

RESOLVED DUPLICATE of bug 22964

People

(Reporter: oltre.la.mente, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:22.0) Gecko/20100101 Firefox/22.0 (Beta/Release)
Build ID: 20130618035212

Steps to reproduce:

i found a little bug.

getYear() javascript function return 113 instead of 2013 (current year).
Severity: normal → minor
Priority: -- → P1
The correct function to use for four-digit years is getFullYear() - see
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getFullYear
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.