diff options
| author | Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com> | 2019-07-25 01:36:48 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-07-25 01:36:48 +0900 |
| commit | 88f5e8e8e2ae759597387f69d579d5915d966b66 (patch) | |
| tree | b1534e994e464c194fce9122fe60e8f0546e2730 /src/misc/format-time-string.ts | |
| parent | Merge branch 'develop' of https://github.com/syuilo/misskey into develop (diff) | |
| download | sharkey-88f5e8e8e2ae759597387f69d579d5915d966b66.tar.gz sharkey-88f5e8e8e2ae759597387f69d579d5915d966b66.tar.bz2 sharkey-88f5e8e8e2ae759597387f69d579d5915d966b66.zip | |
Bye moment from package.json (#5215)
* Bye moment from package.json
* Use Mapped types for argument type definition
Diffstat (limited to 'src/misc/format-time-string.ts')
| -rw-r--r-- | src/misc/format-time-string.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/format-time-string.ts b/src/misc/format-time-string.ts index caa31780ba..bfb2c397ae 100644 --- a/src/misc/format-time-string.ts +++ b/src/misc/format-time-string.ts @@ -20,7 +20,7 @@ function formatLocaleString(date: Date, format: string): string { }); } -function formatDateTimeString(date: Date, format: string): string { +export function formatDateTimeString(date: Date, format: string): string { return format .replace(/yyyy/g, date.getFullYear().toString()) .replace(/yy/g, date.getFullYear().toString().slice(-2)) |