1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-29 10:41:53 +03:00

minor code cleanup - replace useless struct timezone argument to

gettimeofday with NULL in a few places, making it consistent with
usage elsewhere.
This commit is contained in:
Andrew Dunstan
2005-10-22 14:27:29 +00:00
parent 6aad07d270
commit 188c52497d
3 changed files with 7 additions and 11 deletions

View File

@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/nabstime.c,v 1.145 2005/10/15 02:49:29 momjian Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/nabstime.c,v 1.146 2005/10/22 14:27:29 adunstan Exp $
*
*-------------------------------------------------------------------------
*/
@ -1584,14 +1584,13 @@ Datum
timeofday(PG_FUNCTION_ARGS)
{
struct timeval tp;
struct timezone tpz;
char templ[128];
char buf[128];
text *result;
int len;
pg_time_t tt;
gettimeofday(&tp, &tpz);
gettimeofday(&tp, NULL);
tt = (pg_time_t) tp.tv_sec;
pg_strftime(templ, sizeof(templ), "%a %b %d %H:%M:%S.%%06d %Y %Z",
pg_localtime(&tt, global_timezone));