Skip to content
Snippets Groups Projects
Commit dea3705b authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1999-11-23 12:19:20 by simonmar]

Use %Z instead of %z for timezone (%z is GNU extension to strftime)
parent 6fcdff07
No related branches found
No related tags found
No related merge requests found
/* /*
* (c) The GRASP/AQUA Project, Glasgow University, 1994-1998 * (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
* *
* $Id: showTime.c,v 1.6 1999/09/30 16:20:14 sof Exp $ * $Id: showTime.c,v 1.7 1999/11/23 12:19:20 simonmar Exp $
* *
* ClockTime.showsPrec Runtime Support * ClockTime.showsPrec Runtime Support
*/ */
...@@ -41,7 +41,7 @@ showTime(I_ size, StgByteArray d, I_ maxsize, StgByteArray buf) ...@@ -41,7 +41,7 @@ showTime(I_ size, StgByteArray d, I_ maxsize, StgByteArray buf)
return (-1); return (-1);
} }
tm = localtime(&t); tm = localtime(&t);
if (tm != NULL && strftime(buf, maxsize, "%a %b %d %H:%M:%S %z %Y", tm) > 0) { if (tm != NULL && strftime(buf, maxsize, "%a %b %d %H:%M:%S %Z %Y", tm) > 0) {
return 1; return 1;
} else { } else {
return (-1); return (-1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment