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 14:15:00 UTC
[jira] [Updated] (CB-9175) contact's birthday attribute not work in
android
[ 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 (was: contact's birthday attribute not work in android and ios)
> contact's birthday attribute not work in android
> ------------------------------------------------
>
> Key: CB-9175
> URL: https://issues.apache.org/jira/browse/CB-9175
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, iOS, Plugin Contacts
> 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
--
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