Skip to content

Commit

Permalink
EZP-31557: Added timezone offset to ezdate field form value (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartek authored Jul 28, 2020
1 parent a5d8293 commit c95f4dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/FieldType/DataTransformer/DateValueTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function transform($value)
return null;
}

return $value->date->getTimestamp();
return $value->date->getTimestamp() + $value->date->getOffset();
}

/**
Expand Down

0 comments on commit c95f4dc

Please sign in to comment.