Vinoteca: wine shop on 1C-Bitrix (module, template, components, pages)
This commit is contained in:
commit
52795535ae
586 files changed
+27619
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Jinove\Vinoteca;
|
||||
|
||||
use Bitrix\Main\Localization\Loc;
|
||||
|
||||
final class DateFormat
|
||||
{
|
||||
public static function long(int $timestamp, string $languageId): string
|
||||
{
|
||||
return (string)Loc::getMessage("JINOVE_VINOTECA_DATE_LONG", [
|
||||
"#DAY#" => date("j", $timestamp),
|
||||
"#MONTH#" => Loc::getMessage("JINOVE_VINOTECA_MONTH_" . date("n", $timestamp), null, $languageId),
|
||||
"#YEAR#" => date("Y", $timestamp),
|
||||
], $languageId);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user