mirror of
https://github.com/flameshikari/outline-ru.git
synced 2026-06-13 04:05:10 +03:00
update date.ts
This commit is contained in:
@@ -122,8 +122,8 @@ export function unicodeCLDRtoISO639(locale: string) {
|
||||
*
|
||||
* @returns The current date
|
||||
*/
|
||||
export function getCurrentDateAsString(locales?: Intl.LocalesArgument) {
|
||||
return new Date().toLocaleDateString(locales, {
|
||||
export function getCurrentDateAsString(locale?: Intl.LocalesArgument) {
|
||||
return new Date().toLocaleDateString(locale, {
|
||||
year: "numeric",
|
||||
month: "long",
|
||||
day: "numeric",
|
||||
@@ -135,8 +135,8 @@ export function getCurrentDateAsString(locales?: Intl.LocalesArgument) {
|
||||
*
|
||||
* @returns The current time
|
||||
*/
|
||||
export function getCurrentTimeAsString(locales?: Intl.LocalesArgument) {
|
||||
return new Date().toLocaleTimeString(locales, {
|
||||
export function getCurrentTimeAsString(locale?: Intl.LocalesArgument) {
|
||||
return new Date().toLocaleTimeString(locale, {
|
||||
hour: "numeric",
|
||||
minute: "numeric",
|
||||
});
|
||||
@@ -148,8 +148,8 @@ export function getCurrentTimeAsString(locales?: Intl.LocalesArgument) {
|
||||
*
|
||||
* @returns The current date and time
|
||||
*/
|
||||
export function getCurrentDateTimeAsString(locales?: Intl.LocalesArgument) {
|
||||
return new Date().toLocaleString(locales, {
|
||||
export function getCurrentDateTimeAsString(locale?: Intl.LocalesArgument) {
|
||||
return new Date().toLocaleString(locale, {
|
||||
year: "numeric",
|
||||
month: "long",
|
||||
day: "numeric",
|
||||
|
||||
Reference in New Issue
Block a user