You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2015/06/15 23:18:01 UTC
[jira] [Resolved] (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 ]
Joe Bowser resolved CB-9175.
----------------------------
Resolution: Duplicate
CB-8115
> 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
> 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"
> but it should be such like "XXXX/M/D"
> a same problem right here too
> https://issues.apache.org/jira/browse/CB-8115
--
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