You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Olivier Louvignes (JIRA)" <ji...@apache.org> on 2012/10/09 10:24:02 UTC

[jira] [Created] (CB-1602) Android birthday field not working

Olivier Louvignes created CB-1602:
-------------------------------------

             Summary: Android birthday field not working
                 Key: CB-1602
                 URL: https://issues.apache.org/jira/browse/CB-1602
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 2.1.0
         Environment: Baseband : IG9100GXXKL4 (Galaxy S2)
Kernel : 2.6.35.7
Android: 2.3.6

            Reporter: Olivier Louvignes
            Assignee: Joe Bowser


I'm trying to save/update a birthday field on my android device. It does work with a timestamp (int) on iOS. However on android, I'll always get the current (today) date to be saved on my device.

I tried :
- int timestamp
- javascript Date
- string YYYY-MM-DD (what is returned on read().)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CB-1602) Android birthday field not working

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser resolved CB-1602.
----------------------------

    Resolution: Won't Fix

This is a problem with Android (as well as every other browser but iOS Safari, Opera and BB10). Chrome only has partial support.  There are work-arounds at this URL: http://caniuse.com/#feat=input-datetime
                
> Android birthday field not working
> ----------------------------------
>
>                 Key: CB-1602
>                 URL: https://issues.apache.org/jira/browse/CB-1602
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>         Environment: Baseband : IG9100GXXKL4 (Galaxy S2)
> Kernel : 2.6.35.7
> Android: 2.3.6
>            Reporter: Olivier Louvignes
>            Assignee: Joe Bowser
>              Labels: contacts
>
> I'm trying to save/update a birthday field on my android device. It does work with a timestamp (int) on iOS. However on android, I'll always get the current (today) date to be saved on my device.
> I tried :
> - int timestamp
> - javascript Date
> - string YYYY-MM-DD (what is returned on read().)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1602) Android birthday field not working

Posted by "Andrew Grieve (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472448#comment-13472448 ] 

Andrew Grieve commented on CB-1602:
-----------------------------------

We should add a mobile-spec test for this.
                
> Android birthday field not working
> ----------------------------------
>
>                 Key: CB-1602
>                 URL: https://issues.apache.org/jira/browse/CB-1602
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>         Environment: Baseband : IG9100GXXKL4 (Galaxy S2)
> Kernel : 2.6.35.7
> Android: 2.3.6
>            Reporter: Olivier Louvignes
>            Assignee: Joe Bowser
>              Labels: contacts
>
> I'm trying to save/update a birthday field on my android device. It does work with a timestamp (int) on iOS. However on android, I'll always get the current (today) date to be saved on my device.
> I tried :
> - int timestamp
> - javascript Date
> - string YYYY-MM-DD (what is returned on read().)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1602) Android birthday field not working

Posted by "Olivier Louvignes (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472881#comment-13472881 ] 

Olivier Louvignes commented on CB-1602:
---------------------------------------

Does happen on a 2.0.3 & 4.0.3 device.

The behavior is very strange, as if I store new Date("992-02-10 12:00:00"), I'll correctly get a birthday displayed as int -30859189200000, which is the correct timestamp.
But if I try to save new Date("1992-02-10 12:00:00"), then I end up with a date like 31/03/7862!

Tried a lot of things (int, int/1000, int/1000*1000, ...) none of them works.
                
> Android birthday field not working
> ----------------------------------
>
>                 Key: CB-1602
>                 URL: https://issues.apache.org/jira/browse/CB-1602
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>         Environment: Baseband : IG9100GXXKL4 (Galaxy S2)
> Kernel : 2.6.35.7
> Android: 2.3.6
>            Reporter: Olivier Louvignes
>            Assignee: Joe Bowser
>              Labels: contacts
>
> I'm trying to save/update a birthday field on my android device. It does work with a timestamp (int) on iOS. However on android, I'll always get the current (today) date to be saved on my device.
> I tried :
> - int timestamp
> - javascript Date
> - string YYYY-MM-DD (what is returned on read().)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1602) Android birthday field not working

Posted by "Olivier Louvignes (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13473498#comment-13473498 ] 

Olivier Louvignes commented on CB-1602:
---------------------------------------

This is a contact.save() issue, It's not a form input issue.
                
> Android birthday field not working
> ----------------------------------
>
>                 Key: CB-1602
>                 URL: https://issues.apache.org/jira/browse/CB-1602
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>         Environment: Baseband : IG9100GXXKL4 (Galaxy S2)
> Kernel : 2.6.35.7
> Android: 2.3.6
>            Reporter: Olivier Louvignes
>            Assignee: Joe Bowser
>              Labels: contacts
>
> I'm trying to save/update a birthday field on my android device. It does work with a timestamp (int) on iOS. However on android, I'll always get the current (today) date to be saved on my device.
> I tried :
> - int timestamp
> - javascript Date
> - string YYYY-MM-DD (what is returned on read().)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Reopened] (CB-1602) Android birthday field not working

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser reopened CB-1602:
----------------------------

    
> Android birthday field not working
> ----------------------------------
>
>                 Key: CB-1602
>                 URL: https://issues.apache.org/jira/browse/CB-1602
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>         Environment: Baseband : IG9100GXXKL4 (Galaxy S2)
> Kernel : 2.6.35.7
> Android: 2.3.6
>            Reporter: Olivier Louvignes
>            Assignee: Joe Bowser
>              Labels: contacts
>
> I'm trying to save/update a birthday field on my android device. It does work with a timestamp (int) on iOS. However on android, I'll always get the current (today) date to be saved on my device.
> I tried :
> - int timestamp
> - javascript Date
> - string YYYY-MM-DD (what is returned on read().)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1602) Android birthday field not working

Posted by "Braden Shepherdson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Braden Shepherdson updated CB-1602:
-----------------------------------

    Assignee: Braden Shepherdson  (was: Joe Bowser)

I'm investigating this. I can reproduce it. The Cordova Contacts docs say the birthday field is a Date, but iOS wants an integer timestamp, and I get farthest on Android with that type. I'll fix the docs on this if that turns out to be the case.

I'm currently stuck because the Android 2.3.3 stock contacts app doesn't show the birthday field at all, so I'm not sure whether the field is not being set properly, or not being retrieved properly. I'm trying again with 4.0.3.
                
> Android birthday field not working
> ----------------------------------
>
>                 Key: CB-1602
>                 URL: https://issues.apache.org/jira/browse/CB-1602
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>         Environment: Baseband : IG9100GXXKL4 (Galaxy S2)
> Kernel : 2.6.35.7
> Android: 2.3.6
>            Reporter: Olivier Louvignes
>            Assignee: Braden Shepherdson
>              Labels: contacts
>
> I'm trying to save/update a birthday field on my android device. It does work with a timestamp (int) on iOS. However on android, I'll always get the current (today) date to be saved on my device.
> I tried :
> - int timestamp
> - javascript Date
> - string YYYY-MM-DD (what is returned on read().)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1602) Android birthday field not working

Posted by "Braden Shepherdson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13477198#comment-13477198 ] 

Braden Shepherdson commented on CB-1602:
----------------------------------------

I can't seem to get anything on Android to show me a birthday. It's a field in Gmail contacts and on Google+, but neither of those fields seems to be shown on Android even when it's set in Gmail or G+. I can't see or edit the field on Android in the 2.3.3 emulator, 4.0.3 emulator or Galaxy Nexus running 4.1.2.

I'm not even sure whether this is a problem with Cordova properly saving the birthday value, or a problem with retrieving it from the database, because I can't convince anything to show me when the birthday is set.

Given how much of a second-class citizen birthdays appear to be on Android, I'm lowering this to Minor and unassigning it from myself. I've already invested more time than I would like into trying to convince Android to treat birthdays with respect.
                
> Android birthday field not working
> ----------------------------------
>
>                 Key: CB-1602
>                 URL: https://issues.apache.org/jira/browse/CB-1602
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>         Environment: Baseband : IG9100GXXKL4 (Galaxy S2)
> Kernel : 2.6.35.7
> Android: 2.3.6
>            Reporter: Olivier Louvignes
>            Assignee: Braden Shepherdson
>              Labels: contacts
>
> I'm trying to save/update a birthday field on my android device. It does work with a timestamp (int) on iOS. However on android, I'll always get the current (today) date to be saved on my device.
> I tried :
> - int timestamp
> - javascript Date
> - string YYYY-MM-DD (what is returned on read().)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1602) Android birthday field not working

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13473432#comment-13473432 ] 

Joe Bowser commented on CB-1602:
--------------------------------

OK, is this a Date field or a Contacts issue?
                
> Android birthday field not working
> ----------------------------------
>
>                 Key: CB-1602
>                 URL: https://issues.apache.org/jira/browse/CB-1602
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>         Environment: Baseband : IG9100GXXKL4 (Galaxy S2)
> Kernel : 2.6.35.7
> Android: 2.3.6
>            Reporter: Olivier Louvignes
>            Assignee: Joe Bowser
>              Labels: contacts
>
> I'm trying to save/update a birthday field on my android device. It does work with a timestamp (int) on iOS. However on android, I'll always get the current (today) date to be saved on my device.
> I tried :
> - int timestamp
> - javascript Date
> - string YYYY-MM-DD (what is returned on read().)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1602) Android birthday field not working

Posted by "Braden Shepherdson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Braden Shepherdson updated CB-1602:
-----------------------------------

    Priority: Minor  (was: Major)
    
> Android birthday field not working
> ----------------------------------
>
>                 Key: CB-1602
>                 URL: https://issues.apache.org/jira/browse/CB-1602
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>         Environment: Baseband : IG9100GXXKL4 (Galaxy S2)
> Kernel : 2.6.35.7
> Android: 2.3.6
>            Reporter: Olivier Louvignes
>            Assignee: Braden Shepherdson
>            Priority: Minor
>              Labels: contacts
>
> I'm trying to save/update a birthday field on my android device. It does work with a timestamp (int) on iOS. However on android, I'll always get the current (today) date to be saved on my device.
> I tried :
> - int timestamp
> - javascript Date
> - string YYYY-MM-DD (what is returned on read().)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1602) Android birthday field not working

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472870#comment-13472870 ] 

Joe Bowser commented on CB-1602:
--------------------------------

[~agrieve] Agreed.  Not sure if we can do much with this, depending on the circumstances

@Olivier = This is an Date input field, correct? Do you have example code for this? Does this happen on Android 4.0.3?
                
> Android birthday field not working
> ----------------------------------
>
>                 Key: CB-1602
>                 URL: https://issues.apache.org/jira/browse/CB-1602
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>         Environment: Baseband : IG9100GXXKL4 (Galaxy S2)
> Kernel : 2.6.35.7
> Android: 2.3.6
>            Reporter: Olivier Louvignes
>            Assignee: Joe Bowser
>              Labels: contacts
>
> I'm trying to save/update a birthday field on my android device. It does work with a timestamp (int) on iOS. However on android, I'll always get the current (today) date to be saved on my device.
> I tried :
> - int timestamp
> - javascript Date
> - string YYYY-MM-DD (what is returned on read().)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira