Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 60

Thread: [CLOSED-35] [3.x/2.x] DatePicker Picks wrong date

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #21

    Default Error in a specific Date

    Hi mystix,

    Im from Brazil, and here we use the GMT-03:00. I put your override in my code, and works. But in a specific date 11/10/2009 (october, 11, 2009), the error persist. I select this date, and the datefield value is changed for 10/10/2009 (october, 10, 2009).

    In my tests, I saw that all dates less or same to 10/10/2009 (october, 10, 2009), the timezone is GMT-03:00. But, all dates above or same to 12/10/2009 (october, 12, 2009), the timezone is GMT-02:00.

    Whats wrong? Can you help me to solve this?

    Thanks a lot

  2. #22
    Sencha User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236

    Default

    if i'm guessing right you're running a Windows machine, likely Windows XP, and your timezone database hasn't been updated.

    see post #10 -- and the links contained therein.

    p.s. i presume you're on Ext 3.x and using the override from post #13?

  3. #23

    Default Not yet

    Hi Mystix,

    Im using Windows XP, and I had the timezone update, but didnt works. Im using de override in #13 too, but Im using the Ext 2.2.

    Do you have any other trick?

    Thanks

  4. #24
    Sencha User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236

    Default

    does the problem still occur if you switch to Ext 2.3 / 3.0?

    also, what's the exact date + time when DST goes into effect in brazil for the year 2009?

  5. #25
    Sencha User Nom4d3's Avatar
    Join Date
    Sep 2008
    Location
    Araras / SP / Brazil
    Posts
    85

    Default

    It works fine here.
    ExtJS 2.3 - Brazilian Timezone
    our DST starts at october, 18

  6. #26
    Sencha User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236

    Default

    Quote Originally Posted by Nom4d3 View Post
    It works fine here.
    ExtJS 2.3 - Brazilian Timezone
    our DST starts at october, 18
    that's great. at least now my sanity's preserved
    just for completeness -- what time does DST take effect on october 18, 2009?

  7. #27
    Sencha User Nom4d3's Avatar
    Join Date
    Sep 2008
    Location
    Araras / SP / Brazil
    Posts
    85

    Default

    Starts october, 18 - 00:00 from GMT-3 to GMT-2

    At 00:00 we change our clocks to 01:00

  8. #28
    Sencha User
    Join Date
    Jan 2008
    Posts
    10

    Default

    I'm using ext 2.2 and found this error in firebug:

    Date.parseDate(value + " " + this.initTime, format + " " + this.initTimeFormat, strict) is undefined
    http://xxxxxx/public/js/overrides_date.js
    Line 173

    the overrides works in ext 2.2?

    thanks

  9. #29
    Sencha User Nom4d3's Avatar
    Join Date
    Sep 2008
    Location
    Araras / SP / Brazil
    Posts
    85

    Default

    Quote Originally Posted by andregufc View Post
    I'm using ext 2.2 and found this error in firebug:

    Date.parseDate(value + " " + this.initTime, format + " " + this.initTimeFormat, strict) is undefined
    http://xxxxxx/public/js/overrides_date.js
    Line 173

    the overrides works in ext 2.2?

    thanks
    i had the same problem. I was setting a fixed value to the datefield in this format ("Y-m-d"), but all my system is in this format ("d/m/Y").
    Before this override both formats was working fine, but now i needed to set only on the ("d/m/Y") format.

  10. #30
    Sencha User Nom4d3's Avatar
    Join Date
    Sep 2008
    Location
    Araras / SP / Brazil
    Posts
    85

    Default

    a little fix to solve this issue:

    Code:
       safeParse : function(value, format, strict) {
          if (/[gGhH]/.test(format.replace(/(\\.)/g, ''))) {
             return Date.parseDate(value, format, strict);
          } else {
             var nd = Date.parseDate(value + ' ' + this.initTime, format + ' ' + this.initTimeFormat, strict);
             if (nd !== undefined)
                return nd.clearTime();
          }
       },

Page 3 of 6 FirstFirst 12345 ... LastLast

Posting Permissions

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