mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 10:21:46 +02:00
missed updates to calls to ztrftime()
This commit is contained in:
parent
15db636380
commit
51c0ccd303
4 changed files with 6 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
|||
2014-07-30 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* unposted: Src/Builtins/sched.c, Src/Modules/datetime.c,
|
||||
Src/Modules/stat.c: missed updates to ztrftime().
|
||||
|
||||
* 32919: Doc/Zsh/tcpsys.yo Functions/TCP/tcp_output: %P
|
||||
at start of prompt in TCP function system causes standard
|
||||
%-style substitution.
|
||||
|
|
|
@ -211,7 +211,7 @@ bin_sched(char *nam, char **argv, UNUSED(Options ops), UNUSED(int func))
|
|||
|
||||
t = sch->time;
|
||||
tmp = localtime(&t);
|
||||
ztrftime(tbuf, 40, "%a %b %e %k:%M:%S", tmp);
|
||||
ztrftime(tbuf, 40, "%a %b %e %k:%M:%S", tmp, 0L);
|
||||
if (sch->flags & SCHEDFLAG_TRASH_ZLE)
|
||||
flagstr = "-o ";
|
||||
else
|
||||
|
|
|
@ -130,7 +130,7 @@ bin_strftime(char *nam, char **argv, Options ops, UNUSED(int func))
|
|||
buffer = zalloc(bufsize);
|
||||
|
||||
for (x=0; x < 4; x++) {
|
||||
if (ztrftime(buffer, bufsize, argv[0], t) >= 0)
|
||||
if (ztrftime(buffer, bufsize, argv[0], t, 0L) >= 0)
|
||||
break;
|
||||
buffer = zrealloc(buffer, bufsize *= 2);
|
||||
}
|
||||
|
|
|
@ -198,7 +198,7 @@ stattimeprint(time_t tim, char *outbuf, int flags)
|
|||
if (flags & STF_STRING) {
|
||||
char *oend = outbuf + strlen(outbuf);
|
||||
ztrftime(oend, 40, timefmt, (flags & STF_GMT) ? gmtime(&tim) :
|
||||
localtime(&tim));
|
||||
localtime(&tim), 0L);
|
||||
if (flags & STF_RAW)
|
||||
strcat(oend, ")");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue