From 2e5dc6fd18ab80e5974180d9236e81ac274d1d6d Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 11 Nov 2012 16:20:14 +0100 Subject: show formatted time, dont show interpreted time since its not always correct Signed-off-by: unknown --- sfeed.c | 2 +- sfeed_html.c | 2 +- sfeed_plain.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sfeed.c b/sfeed.c index 04a0f5e..e3f77a6 100644 --- a/sfeed.c +++ b/sfeed.c @@ -321,7 +321,7 @@ xml_handler_end_element(void *data, const char *name) { printf("%ld", (long)parsetime((&feeditem.timestamp)->data, timebuf, sizeof(timebuf) - 1)); fputc(FieldSeparator, stdout); - printf("%s", timebuf); + fputs(timebuf, stdout); fputc(FieldSeparator, stdout); string_print_trimmed(&feeditem.title); fputc(FieldSeparator, stdout); diff --git a/sfeed_html.c b/sfeed_html.c index 532a0d0..0dbb7c9 100644 --- a/sfeed_html.c +++ b/sfeed_html.c @@ -177,7 +177,7 @@ main(void) { feedcurrent->total++; fputs("", stdout); - printtime(parsedtime); + fputs(fields[FieldTimeFormatted], stdout); fputs("", stdout); if(isnew) fputs("", stdout); diff --git a/sfeed_plain.c b/sfeed_plain.c index 8eebd10..92509d5 100644 --- a/sfeed_plain.c +++ b/sfeed_plain.c @@ -30,7 +30,7 @@ main(void) { printf(" %c ", (parsedtime >= comparetime) ? 'N' : ' '); if(fields[FieldFeedName][0] != '\0') printf("%-15.15s ", fields[FieldFeedName]); - printtime(parsedtime); + fputs(fields[FieldTimeFormatted], stdout); fputs(" ", stdout); printutf8padded(fields[FieldTitle], 70); fputs(" ", stdout); -- cgit v1.2.3