Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: JS Date Bug

  1. #1

    Default JS Date Bug

    Hi!

    I found a bug with JS Date.getMonth() and Date.getYear(). The returned values are wrong.
    This bug is easily reproducible:
    Code:
    var today = new Date();
    Alert('Wrong Year:'+ today.getYear());
    Alert('Wrong Month:'+ today.getMonth());
    Alert('Good Year:'+str2num(date2str(today,"yyyy")));
    Alert('Good Month:'+ str2num(date2str(today,"MM")));
    I submited a bug report with the exemple ktr: http://jira.pentaho.org/browse/PDI-103 .

  2. #2
    Join Date
    May 2006
    Posts
    4,882

    Default

    I added a comment to JIRA... it's not a bug, it's also not in PDI... it's a java peculiarity

    Regards
    Sven

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.