Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-18728

Android: Date picker Can't Select Date after year 2100AD

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 3.5.1
    • Fix Version/s: Release 4.1.0
    • Component/s: TiAPI
    • Environment:

      Ti SDK 3.5.*
      Android 4.2.2

    • Story Points:
      5
    • Sprint:
      2015 Sprint 07 SDK

      Description

      Android: Date picker Can't Select Date after year 2100AD

      Steps to reproduce:

      1.Run the following code in classic mobile project.

      app.js

      Ti.UI.backgroundColor = 'white';
      var win = Ti.UI.createWindow({
        exitOnClose: true,
        layout: 'vertical'
      });
       
      var picker = Ti.UI.createPicker({
        type:Ti.UI.PICKER_TYPE_DATE,
        minDate:new Date(2009,0,1),
        maxDate:new Date(2200,4,1),
        value:new Date(2015,2,23),
        top:50,
        accessablityLabel: "data picker"
      });
       
      win.add(picker);
      win.open();
       
      picker.addEventListener('change',function(e){
        Ti.API.info("User selected date: " + e.value.toLocaleString());
      });
      

      Expect Result:

      Date should be available to select until the max value

      Actual Result:

      Date only available to 2100AD, no matter what max value set.

      Use case:

      For Thailand Buddhist, the year is 543 behind Gregorian year. That is why we need select date after 2100AD.

      N.B

      Only happened in android device, iOS works well.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                msamah Ashraf Abu (Inactive)
                Reporter:
                sliang Shuo Liang
                Reviewer:
                Hieu Pham
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-19817
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration