Hello list:

I started using RC 0.8.1 yesterday, and wanted to congratulate everybody involved for a great piece of software: Thank you!

LDAP has significantly improved, and I am now able to sync all fields from my iOS devices with an LDAP backend that can also be edited via RC.

An execption are the two fields birthDate and anniversary. The issue is that RC stores them by default in "Y-m-d" (yyyy-mm-dd) format, but iOS expects the field to be in Unix timestamp format:

1) So when I create a birthday field as "1975-09-24" in RC, it gets stored as "1975-09-24" in LDAP, and in turn this is displayed on iOS as "1 January 1970" (the default value), because "1975-09-24" it is obviously not a valid timestamp.

2) The other way round, when I create a birthday field as "1975-09-24" in iOS, the field is stored as 180741600 in LDAP, and then CORRECTLY displayed on RC as "24 September 1975": so all dandy up to here. However, when I try to edit that (correctly displayed) date field in RC, the behaviour outlined in 1) converts the timestamp to "Y-m-d" format in LDAP, breaking the field for iOS.

In summary: round-trip editing of date fields does not work at the moment with RC and iOS.

I have tried to update rcmail_format_date_col() from program/steps/addressbook/func.inc (using date format string "s" for timestamp), and format_date() from program/steps/addressbook/func.inc but RC still writes the date field as "Y-m-d", independent of what I use in rcmail_format_date_col().

Any ideas how to fix this final issue?

Thank you in advance, Achim
_______________________________________________
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users

Reply via email to