mirror of
https://github.com/postgres/postgres.git
synced 2025-08-19 23:22:23 +03:00
Improve EncodeDateTime and EncodeTimeOnly APIs
Use an explicit argument to tell whether to include the time zone in the output, rather than using some undocumented pointer magic.
This commit is contained in:
@@ -311,7 +311,7 @@ abstimeout(PG_FUNCTION_ARGS)
|
||||
break;
|
||||
default:
|
||||
abstime2tm(time, &tz, tm, &tzn);
|
||||
EncodeDateTime(tm, fsec, &tz, &tzn, DateStyle, buf);
|
||||
EncodeDateTime(tm, fsec, true, tz, tzn, DateStyle, buf);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user