Skip to content

Commit

Permalink
Tweak notes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Oct 2, 2014
1 parent 3b18ea9 commit 034d924
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions framework/ActiveSync/lib/Horde/ActiveSync/Device.php
Expand Up @@ -476,8 +476,12 @@ public function getMinorVersion()
*/
public function normalizePoomContactsDates($date, $toEas = false)
{
// WP devices seem to send the birthdays at the entered date, with
// a time of 00:00:00 UTC.
// WP:
// Devices seem to send the birthdays at the entered date, with
// a time of 00:00:00 UTC during standard time and with 01:00:00 UTC
// during DST if the client's configured timezone observes it. No idea
// what purpose this serves since no timezone data is transmitted for
// birthday values.
//
// iOS:
// Seems different based on version. iOS 5+, at least seems to send
Expand All @@ -493,11 +497,11 @@ public function normalizePoomContactsDates($date, $toEas = false)
// Android:
// For contacts originating on the SERVER, the following is true:
//
// Stock 4.3 Takes the incoming bday value which is assumed to be UTC,
// does some magic to it (converts to milliseconds, creates a
// Stock 4.3 Takes the down-synched bday value which is assumed to be
// UTC, does some magic to it (converts to milliseconds, creates a
// gregorian calendar object, then converts to YYYY-MM-DD). When
// sending the bday value up, it sends it as-is. No conversion to/from
// UTC or local is done.
// sending the bday value up, it sends it up as-is. No conversion
// to/from UTC or local is done.
//
// Stock 4.4.x does the above, but before sending the bday value,
// validates that it's in a correct format for sending to the server.
Expand All @@ -518,9 +522,9 @@ public function normalizePoomContactsDates($date, $toEas = false)
//
// Given all of this, it makes sense to me to ALWAYS send birthday
// data as occuring at 08:00:00 UTC for *native* Android clients.

//
// BB 10+ expects it at 12:00:00 UTC

switch (strtolower($this->clientType)) {
case self::TYPE_WP:
case 'wp8': // Legacy. Remove in H6.
Expand Down

0 comments on commit 034d924

Please sign in to comment.