File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 9
9
*
10
10
*
11
11
* IDENTIFICATION
12
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.81 2001/02/13 14:32:52 momjian Exp $
12
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.82 2001/02/21 22:03:00 tgl Exp $
13
13
*
14
14
* NOTES
15
15
*
@@ -1911,13 +1911,13 @@ timeofday(PG_FUNCTION_ARGS)
1911
1911
{
1912
1912
struct timeval tp ;
1913
1913
struct timezone tpz ;
1914
- char templ [500 ];
1915
- char buf [500 ];
1914
+ char templ [100 ];
1915
+ char buf [100 ];
1916
1916
text * result ;
1917
- int len = 0 ;
1917
+ int len ;
1918
1918
1919
1919
gettimeofday (& tp , & tpz );
1920
- strftime (templ , sizeof (templ ), "%a %b %d %H:%M:%S.%%d %Y %Z" ,
1920
+ strftime (templ , sizeof (templ ), "%a %b %d %H:%M:%S.%%06d %Y %Z" ,
1921
1921
localtime ((time_t * ) & tp .tv_sec ));
1922
1922
snprintf (buf , sizeof (buf ), templ , tp .tv_usec );
1923
1923
You can’t perform that action at this time.
0 commit comments