[ 
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

Reply via email to