Implement ProgCode identity and real shared reading UI kit
Build and deploy / deploy (push) Successful in 2m39s
Build and deploy / deploy (push) Successful in 2m39s
This commit is contained in:
1 parent
99c848189e
commit
12562baeb5
2040 files changed
+184656
-181
No files matched your search
@@ -0,0 +1,5 @@
|
||||
// Archived publication timestamps are UTC; their UTC calendar days match the
|
||||
// visible source dates and dated permalinks. Never use the build/browser timezone.
|
||||
export function formatDate(date, {day = '2-digit', month = 'long'} = {}) {
|
||||
return new Intl.DateTimeFormat('ru-RU', {day, month, year: 'numeric', timeZone: 'UTC'}).format(new Date(date));
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export {formatDate} from './dates.mjs';
|
||||
Reference in new issue
Block a user