Results 1 to 3 of 3

Thread: DatePicker pick the wrong date in Android OS

  1. #1
    Sencha User
    Join Date
    Jul 2015

    Default DatePicker pick the wrong date in Android OS

    I run a demo program in Android simulator but find the date picker does not pick the right date every time if we do it with below steps. This issue only occurs in Android 4.4.2 and later Android OS, it is fine in iOS and Android 4.2.2.

    Test scenerio:
    1. Select January 3 (as 1.png)
    2. slip to January 9 with finger (as 2.png)
    3. Click button Done, but the actual shown date is January 3 (as 4.png). The right date should be January 9.

    The demo source code structure is as image002.png

    The source code of app.js is as below. compared with, I just added a button to pick and show the date.


    name: "Demo",
    icon: "icon.png",
    glossOnIcon: false,
    tabletStartupScreen: "tablet_startup.png",
    phoneStartupScreen: "phone_startup.png",

    requires: [

    launch: function() {
    this.picker = Ext.Viewport.add({
    xtype: 'datepicker',
    useTitles: false,
    doneButton: true,
    cancelButton: false,
    hidden: true,
    yearFrom: 2015,
    yearTo : 2015,
    listeners : {
    change: function(picker, value) {

    // Add one button into the viewport and center it horizontally and vertically.
    xtype: 'container',
    layout: {
    type: 'vbox',
    align: 'center',
    pack: 'center'
    items: [
    xtype: 'button',
    ui: 'normal',
    text: 'Show Picker',
    scope: this,
    handler: function() {
    // When you tap this button, show the picker.;
    }, {
    Attached Images Attached Images

  2. #2
    Sencha User
    Join Date
    Jul 2015


    Does anyone notice this bug? It is easy to reproduce it in any Android devices and bothers us quite a long time.

  3. #3
    Sencha Premium User
    Join Date
    Jun 2011
    Perth, Western Australia


    Yes..Although we are seeing it in the DateTimePicker which is just a hybrid of the DatePicker It seems that using Android Studio & the Android 6.0 emulators that this doesn't happen, but using Android 5.x emulators it does, randomly happen: e.g. Pick 8:40 .. change to 6:40 .. stays at 8:40 .. change to 12:40 .. stays at 8:40 issues like that. We have an ST 2.4.2 app currently in final beta and one of our external testers is having this issue constantly with Android 5.0.1 Have tried changing height, font-size etc... no difference. A bit lost for a solution.

Similar Threads

  1. DatePicker show wrong date in Android
    By Andy su in forum Sencha Touch 2.x: Q&A
    Replies: 8
    Last Post: 20 Nov 2015, 2:01 AM
  2. DatePicker wrong date
    By Tim.Si in forum Sencha GXT Bugs
    Replies: 4
    Last Post: 19 Oct 2015, 1:32 AM
  3. [CLOSED-35] [3.x/2.x] DatePicker Picks wrong date
    By Sina in forum Ext 3.x: Bugs
    Replies: 59
    Last Post: 19 Oct 2010, 8:48 AM
  4. [FNR] DatePicker picks wrong date / month
    By vsevik in forum Ext GWT: Bugs (2.x)
    Replies: 3
    Last Post: 8 Apr 2010, 2:43 AM
  5. datepicker pick the wrong month
    By Isaac_cm in forum Ext 1.x: Bugs
    Replies: 13
    Last Post: 1 Oct 2007, 4:17 AM

Posting Permissions

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