Skip to content

Commit 2201755

Browse files
fixed confusing grammar in the backend formatDate() function
1 parent abbfa03 commit 2201755

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/Eav/Model/Entity/Attribute/Backend

1 file changed

+3
-3
lines changed

app/code/Magento/Eav/Model/Entity/Attribute/Backend/Datetime.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ public function beforeSave($object)
6161
/**
6262
* Prepare date for save in DB
6363
*
64-
* string format used from input fields (all date input fields need apply locale settings)
65-
* int value can be declared in code (this meen whot we use valid date)
64+
* string format is used in input fields (all date input fields need apply locale settings)
65+
* int (Unix) format can be used in other parts of the code
6666
*
6767
* @param string|int|\DateTimeInterface $date
6868
* @return string
@@ -72,7 +72,7 @@ public function formatDate($date)
7272
if (empty($date)) {
7373
return null;
7474
}
75-
// unix timestamp given - simply instantiate date object
75+
// Unix timestamp given - simply instantiate date object
7676
if (is_scalar($date) && preg_match('/^[0-9]+$/', $date)) {
7777
$date = (new \DateTime())->setTimestamp($date);
7878
} elseif (!($date instanceof \DateTimeInterface)) {

0 commit comments

Comments
 (0)