Skip to content

Commit 5b744f6

Browse files
authored
Merge pull request #1722 from dolthub/jennifer/format-tm
support to_timestamp and to_date functions along with other functions as placeholder
2 parents ec65ed9 + 3220e89 commit 5b744f6

15 files changed

+2134
-21
lines changed

server/functions/date.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ var date_out = framework.Function1{
6060
Parameters: [1]*pgtypes.DoltgresType{pgtypes.Date},
6161
Strict: true,
6262
Callable: func(ctx *sql.Context, _ [2]*pgtypes.DoltgresType, val any) (any, error) {
63-
return val.(time.Time).Format("2006-01-02"), nil
63+
return FormatDateTimeWithBC(val.(time.Time), "2006-01-02", false), nil
6464
},
6565
}
6666

0 commit comments

Comments
 (0)