This website works better with JavaScript.
Home
Explore
帮助
返回水杉在线
登录水杉在线
登录水杉码园
wlxsp
/
test1
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Adds number to allowed types to formatDate
main
Eric Amodio
2 years ago
parent
a44d781724
commit
1cc0f7513a
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/system/date.ts
+ 1
- 1
src/system/date.ts
View File
@ -125,7 +125,7 @@ export function fromNow(date: Date, short?: boolean): string {
}
export
function
formatDate
(
date
:
Date
,
date
:
Date
|
number
,
format
:
'full'
|
'long'
|
'medium'
|
'short'
|
string
|
null
|
undefined
,
locale?
:
string
,
cache
:
boolean
=
true
,
Write
Preview
Loading…
Cancel
Save