Skip to content

Commit ab8dd2e

Browse files
committed
Fixed 68
1 parent 4cbd834 commit ab8dd2e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
return date('[% date_format %]', strtotime($value));
1+
return \DateTime::createFromFormat('[% date_format %]', $value);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
$this->attributes['[% field_name %]'] = !empty($value) ? date($this->getDateFormat(), strtotime($value)) : null;
1+
$this->attributes['[% field_name %]'] = !empty($value) ? \DateTime::createFromFormat($this->getDateFormat(), $value) : null;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
return date('[% date_format %]', strtotime($value));
1+
return \DateTime::createFromFormat('[% date_format %]', $value);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
$this->attributes['[% field_name %]'] = !empty($value) ? date($this->getDateFormat(), strtotime($value)) : null;
1+
$this->attributes['[% field_name %]'] = !empty($value) ? \DateTime::createFromFormat($this->getDateFormat(), $value) : null;

0 commit comments

Comments
 (0)