Skip to content

Commit b5d5721

Browse files
committed
fix dateTime filter
1 parent 7609bc5 commit b5d5721

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@signal24/vue-foundation",
33
"type": "module",
4-
"version": "4.25.1",
4+
"version": "4.25.2",
55
"description": "Common components, directives, and helpers for Vue 3 apps",
66
"module": "./dist/vue-foundation.es.js",
77
"exports": {

src/filters/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function time(value: string | null, formatStr?: string) {
8484

8585
function dateTime(value: string | null, formatStr?: string) {
8686
if (!value) return value;
87-
return format(new Date(value), formatStr ?? VfOptions.defaultDateFormat);
87+
return format(new Date(value), formatStr ?? `${VfOptions.defaultDateFormat} ${VfOptions.defaultTimeFormat}`);
8888
}
8989

9090
function oneDayForward(date?: string | null) {

0 commit comments

Comments
 (0)