You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Colin Bau (JIRA)" <ji...@apache.org> on 2015/06/14 12:02:00 UTC

[jira] [Updated] (CB-9175) contact's birthday attribute not work in android and ios

     [ https://issues.apache.org/jira/browse/CB-9175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colin Bau updated CB-9175:
--------------------------
    Summary: contact's birthday attribute not work in android and ios  (was: contact's birthday attribute not work in android ios and wp8)

> contact's birthday attribute not work in android and ios
> --------------------------------------------------------
>
>                 Key: CB-9175
>                 URL: https://issues.apache.org/jira/browse/CB-9175
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Contacts, WP8
>    Affects Versions: 5.0.0
>         Environment: Android 4.4
> iOS 8.3
> winphone 8.1
> with contact plugin 1.0.0
>            Reporter: Colin Bau
>            Priority: Critical
>              Labels: contact
>
> this is my full code
> =====
> var contact = navigator.contacts.create();
> contact.nickname = 'nick';
> contact.birthday = new Date(1983,2,23).toLocaleDateString();
> contact.save(onSuccess, onError);
> =====
> the data will insert success
> but the birthday information will totally wrong
> when in Android => it will become a long integer such like "417196800000"
> when in iOS => it will become a null value
> when in WP8 => it will become a strange date formate such like "00001/1/1 00:00:00"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org