question

christophschmoliner avatar image
christophschmoliner asked

Birthday and anniversary date formats

Our app (n'4get Reminder) imports birthday and anniverary dates from the device's contacts. (ContactsContract.CommonDataKinds.Event.START_DATE) However, it seems as if the Amazon Kindle Fire family does not use a unified date format on all of the devices. User feedback also suggests, that dates for ContactsContract.CommonDataKinds.Event.TYPE_BIRTHDAY and ContactsContract.CommonDataKinds.Event.TYPE_ANNIVERSARY are different from one another on the Kindle Fire HD. Is there any specific information on how the date is stored across the Kindle Fire family? Most other Android devices are using one of the following: yyyy-MM-dd yy-MM-dd yyyy/MM/dd yyyy-MM-dd'T'HH:mm:ss'Z' yyyy-MM-dd'T'HH:mm:ss.SSS'Z' Kindle Fire seems to work with one of these, Fire HD does not. Regards, Christoph
fire tablet
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Bipin@Amazon avatar image
Bipin@Amazon answered
Hi Christoph, kINDLE fIRE hd 7 05-21 22:59:43.350: D/Testing(11447): Birthday: 1981-11-17T08:00:00.000Z 05-21 22:59:43.350: D/Testing(11447): Anv: 2009-11-02T08:00:00.000Z kINDLE FIRE 2 gEN 05-22 07:18:19.007: D/Testing(6409): Birthday: 1981-11-17T08:00:00.000Z 05-22 07:18:19.015: D/Testing(6409): Anv: 2009-11-02T08:00:00.000Z The format is yyyy-MM-dd'T'HH:mm:ss.SSS'Z' Let me know, is there any specific problem, you are facing. I hope the above information helps
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

christophschmoliner avatar image
christophschmoliner answered
Great, thanks for the help! What puzzled me were users reporting problems after upgrading to Kindle Fire HD and one of those shared his logfile of a KFTT with me. It read birthdays as yyyyMMdd and some anniversaries as yyyy-MM-dd'T'HH:mm:ss.SSS'Z' others as yyyy-MM dd'T'HH:mm:ss.SSS'Z' (a white space instead of a dash) Maybe he has some third party app messing with contacts. I'll just account for any of those formats. Christoph
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.