summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2019-05-10 13:38:18 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2019-05-10 13:38:18 +0200
commit0b729e7453626272843ecf86889b21bac12e4cc8 (patch)
tree180d258f3554d2834558019b14a122081b9a9b2c
parent385c04b9660ae1825de477532bf527c1c6a6a9fc (diff)
sfeed_plain: start with timestamp, consistent with sfeed_twtxt
-rw-r--r--sfeed_plain.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sfeed_plain.c b/sfeed_plain.c
index 7781f38..ab9a634 100644
--- a/sfeed_plain.c
+++ b/sfeed_plain.c
@@ -39,14 +39,13 @@ printfeed(FILE *fp, const char *feedname)
else
fputs(" ", stdout);
+ fprintf(stdout, "%04d-%02d-%02d %02d:%02d ",
+ tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,
+ tm->tm_hour, tm->tm_min);
if (feedname[0]) {
printutf8pad(stdout, feedname, 15, ' ');
fputs(" ", stdout);
}
-
- fprintf(stdout, "%04d-%02d-%02d %02d:%02d ",
- tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,
- tm->tm_hour, tm->tm_min);
printutf8pad(stdout, fields[FieldTitle], 70, ' ');
printf(" %s\n", fields[FieldLink]);
}