@@ 453-456 (lines=4) @@ | ||
450 | if ($fieldMapping['type'] === 'date') { |
|
451 | // leave only date |
|
452 | $utc = new \DateTimeZone('UTC'); |
|
453 | if ($old && $old instanceof \DateTime) { |
|
454 | $old->setTimezone($utc); |
|
455 | $old = new \DateTime($old->format('Y-m-d'), $utc); |
|
456 | } |
|
457 | if ($new && $new instanceof \DateTime) { |
|
458 | $new->setTimezone($utc); |
|
459 | $new = new \DateTime($new->format('Y-m-d'), $utc); |
|
@@ 457-460 (lines=4) @@ | ||
454 | $old->setTimezone($utc); |
|
455 | $old = new \DateTime($old->format('Y-m-d'), $utc); |
|
456 | } |
|
457 | if ($new && $new instanceof \DateTime) { |
|
458 | $new->setTimezone($utc); |
|
459 | $new = new \DateTime($new->format('Y-m-d'), $utc); |
|
460 | } |
|
461 | } |
|
462 | } |
|
463 |