Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Problem with DateUtil.getFiscalWeek

    When trying to get the week number for fiscal year I'm getting exception that the return value does not match the method signature.

    There seems some problem with auto boxing, or the return type should be fixed.

    GWT 2.5.1
    SmartGWT 3.1 2013-07-08

    code to reproduce

    Code:
    DateUtil.getFiscalWeek(new Date (), DateUtil.getFiscalCalendar())

    #2
    We're not seeing any issues here against the latest build.

    All three of these calls work as expected:

    Code:
    DateUtil.getFiscalWeek(new Date (), DateUtil.getFiscalCalendar());
    
    int week = DateUtil.getFiscalWeek(new Date(), DateUtil.getFiscalCalendar());
    
    Integer week = DateUtil.getFiscalWeek(new Date(), DateUtil.getFiscalCalendar());
    We are assuming you've specified a FiscalCalendar in your app, or that you're loading some non-US locale - please confirm those points and provide any other detail required to cause an issue in your sample code.

    Comment

    Working...
    X