Skip to content

Commit 4586128

Browse files
🔃 [EngCom] Public Pull Requests - 2.1-develop
Accepted Public Pull Requests: - #15222: [Backport] Fixed datepicker problem when using non en-US locale. (by @rogyar) - #15221: [Backport] Translate action Label (by @rogyar)
2 parents f95b59f + 8886c04 commit 4586128

File tree

2 files changed

+2
-2
lines changed
  • app/code/Magento/Config/view/adminhtml/templates/system/config/form/field
  • lib/web/mage/utils

2 files changed

+2
-2
lines changed

app/code/Magento/Config/view/adminhtml/templates/system/config/form/field/array.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $_colspan = $block->isAddAfter() ? 2 : 1;
2121
<?php foreach ($block->getColumns() as $columnName => $column): ?>
2222
<th><?php /* @escapeNotVerified */ echo $column['label']; ?></th>
2323
<?php endforeach;?>
24-
<th class="col-actions" colspan="<?php /* @escapeNotVerified */ echo $_colspan; ?>">Action</th>
24+
<th class="col-actions" colspan="<?= /* @escapeNotVerified */ $_colspan ?>"><?php /* @escapeNotVerified */ echo __('Action') ?></th>
2525
</tr>
2626
</thead>
2727
<tfoot>

lib/web/mage/utils/misc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ define([
245245
convertToMomentFormat: function (format) {
246246
var newFormat;
247247

248-
newFormat = format.replace(/yy|y/gi, 'YYYY'); // replace the year
248+
newFormat = format.replace(/yyyy|yy|y/, 'YYYY'); // replace the year
249249
newFormat = newFormat.replace(/dd|d/g, 'DD'); // replace the day
250250

251251
return newFormat;

0 commit comments

Comments
 (0)