aboutsummaryrefslogtreecommitdiffstats
path: root/util/miscutil.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-09-18 15:24:53 +0000
committerWerner Koch <[email protected]>1998-09-18 15:24:53 +0000
commitb4aeef458c51b9debd394592e76b93cc6b00e0a2 (patch)
treee87818f5c15e12189f5fc054faf6d09e07e3d120 /util/miscutil.c
parentMichael Roth has released is des impl. (diff)
downloadgnupg-b4aeef458c51b9debd394592e76b93cc6b00e0a2.tar.gz
gnupg-b4aeef458c51b9debd394592e76b93cc6b00e0a2.zip
.
Diffstat (limited to '')
-rw-r--r--util/miscutil.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/miscutil.c b/util/miscutil.c
index 00293089d..b9f8288d9 100644
--- a/util/miscutil.c
+++ b/util/miscutil.c
@@ -61,16 +61,16 @@ strtimestamp( u32 stamp )
const char *
asctimestamp( u32 stamp )
{
- static char buffer[30];
+ static char buffer[50];
struct tm *tp;
time_t atime = stamp;
tp = localtime( &atime );
#ifdef HAVE_STRFTIME
- mem2str( buffer, asctime(tp), DIM(buffer) );
- #else
- strftime( buffer, DIM(buffer)-1, "%c", tp );
+ strftime( buffer, DIM(buffer)-1, "%c %Z", tp );
buffer[DIM(buffer)-1] = 0;
+ #else
+ mem2str( buffer, asctime(tp), DIM(buffer) );
#endif
return buffer;
}