Skip to content

Commit

Permalink
Update ShimModel.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Dec 14, 2022
1 parent 060cecb commit 05f9af1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Model/ShimModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,11 +487,11 @@ public function deconstruct($field, $data, $type = null) {
isset($data['meridian']) &&
!empty($data['hour']) &&
$data['hour'] != 12 &&
$data == 'pm'['meridian']
$data['meridian'] == 'pm'
) {
$data['hour'] = $data['hour'] + 12;
}
if (isset($data['hour']) && isset($data['meridian']) && $data['hour'] == 12 && $data == 'am'['meridian']) {
if (isset($data['hour']) && isset($data['meridian']) && $data['hour'] == 12 && $data['meridian'] == 'am') {
$data['hour'] = '00';
}
if ($type === 'time') {
Expand Down

0 comments on commit 05f9af1

Please sign in to comment.