These notices are generated with and without timezone argument.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mikran’s picture

Status: Active » Needs review
FileSize
495 bytes
mikran’s picture

Assigned: Unassigned » mikran

I noticed the mention over at #2034231: [META] Integrated patch for migration changes. This issue is kind of old but I should still have the migrate somewhere so I'll try to find it and provide more details.

Status: Needs review » Needs work

The last submitted patch, undefined_index_timezone-1888268-1.patch, failed testing.

kplanz’s picture

I have the same problem.
Attached an updated patch which works with the current 7.x-2.x-dev version.

kplanz’s picture

Status: Needs work » Needs review

Change status.

alcroito’s picture

Attaching a patch that IMO is better, because instead of setting the timezone before even $return is defined, it should be set for the particular conditional branch, also making sure that if the date value is NULL, timezone should also be NULL.

mikran’s picture

Assigned: mikran » Unassigned
joelpittet’s picture

Status: Needs review » Reviewed & tested by the community

Fixes the notices, thank you.

ohthehugemanatee’s picture

worked for me, too. I still have other issues when the imported date is unix 0, but that's a separate issue. Seems RTBC.

ayalon’s picture

Thanks! Tested and working! Please commit it.

heddn’s picture

RTBC again.

opi’s picture

RTBC for me, #6 fixes every notices, thanks.

Chewie’s picture

Patch for Date 7.28 version https://www.drupal.org/node/2451027

podarok’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.