Results 1 to 1 of 1

Thread: Ext.Date.parse problem when using format 'W-o'

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Mar 2010
    Location
    The Netherlands
    Posts
    77

    Default Ext.Date.parse problem when using format 'W-o'

    REQUIRED INFORMATION

    Ext version tested:
    • Ext 4.0.6
    Browser versions tested against:
    • IE 9.0.8112.16421
    • FF7.0.1 (firebug 1.0.9.a3 installed)
    • Chrome 14.0.835.202 m
    Description:
    • Using Ext.Date.parse('52-2011', 'W-o') results in current date. The same is for each weeknumber. I need this functionality for a custom weekfield (extends Ext.form.field.date), the parse function is executed by the safeParse function in the /form/field/Date.js when clicking on the trigger (opens the calendar) and always returns the incorrect date.
    Steps to reproduce the problem:
    • Execute Ext.Date.parse('52-2011', 'W-o') in onReady
    The result that was expected:
    • The starting day of that week: with the Ext.Date.defaults.d = 1 property?
    • Or null (that it can't be parsed)
    The result that occurs instead:
    • The current date
    Test Case:
    Code:
       alert(Ext.Date.parse('52-2011', 'W-o'));
    HELPFUL INFORMATION

    Screenshot or Video:
    • none
    See this URL for live test case: none

    Debugging already done:
    • none
    Possible fix:
    • not provided
    Additional CSS used:
    • only default ext-all.css
    Operating System:
    [LIST][*]Wi
    Last edited by siebe vos; 19 Oct 2011 at 7:13 AM. Reason: Modified the results

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •