diff options
Diffstat (limited to 'src/libventi/time.c')
-rw-r--r-- | src/libventi/time.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/libventi/time.c b/src/libventi/time.c index eb686b32..e105c624 100644 --- a/src/libventi/time.c +++ b/src/libventi/time.c @@ -15,14 +15,13 @@ vttimefmt(Fmt *fmt) ns = nsec(); tm = *localtime(ns/1000000000); if(fmt->flags&FmtLong){ - return fmtprint(fmt, "%04d/%02d%02d %02d:%02d:%02d.%03d", - tm.year+1900, tm.mon+1, tm.mday, + return fmtprint(fmt, "%04d/%02d%02d %02d:%02d:%02d.%03d", + tm.year+1900, tm.mon+1, tm.mday, tm.hour, tm.min, tm.sec, (int)(ns%1000000000)/1000000); }else{ - return fmtprint(fmt, "%04d/%02d%02d %02d:%02d:%02d", - tm.year+1900, tm.mon+1, tm.mday, + return fmtprint(fmt, "%04d/%02d%02d %02d:%02d:%02d", + tm.year+1900, tm.mon+1, tm.mday, tm.hour, tm.min, tm.sec); } } - |