=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/format.c,v retrieving revision 1.173 retrieving revision 1.174 diff -c -r1.173 -r1.174 *** src/usr.bin/tmux/format.c 2019/03/13 18:09:12 1.173 --- src/usr.bin/tmux/format.c 2019/03/14 21:27:26 1.174 *************** *** 1,4 **** ! /* $OpenBSD: format.c,v 1.173 2019/03/13 18:09:12 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: format.c,v 1.174 2019/03/14 21:27:26 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott *************** *** 1482,1487 **** --- 1482,1489 ---- if (fmt == NULL || *fmt == '\0') return (xstrdup("")); + if (t == 0) + t = time(NULL); tm = localtime(&t); if (strftime(s, sizeof s, fmt, tm) == 0)