projects
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More care with time types
[exim.git]
/
src
/
src
/
tod.c
diff --git
a/src/src/tod.c
b/src/src/tod.c
index 427227c688eda6d10259bc48c94a8a9c9c537785..0297e375e5c7940ed5200271c026136927071894 100644
(file)
--- a/
src/src/tod.c
+++ b/
src/src/tod.c
@@
-74,8
+74,8
@@
if (type == tod_log) type = log_timezone? tod_log_zone : tod_log_bare;
else if (type == tod_epoch)
{
else if (type == tod_epoch)
{
- (void) sprintf(CS timebuf,
"%d", (int)
now); /* Unix epoch format */
- return timebuf;
+ (void) sprintf(CS timebuf,
TIME_T_FMT,
now); /* Unix epoch format */
+ return timebuf;
/* NB the above will be wrong if time_t is FP */
}
else if (type == tod_zulu)
}
else if (type == tod_zulu)