sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit 2e5dc6fd18ab80e5974180d9236e81ac274d1d6d
parent 17e42efaca7d14a3ad44deab4c4507bae16fe7c3
Author: unknown <hiltjo@.(none)>
Date:   Sun, 11 Nov 2012 16:20:14 +0100

show formatted time, dont show interpreted time since its not always correct

Signed-off-by: unknown <hiltjo@.(none)>

Diffstat:
Msfeed.c | 2+-
Msfeed_html.c | 2+-
Msfeed_plain.c | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git 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 @@ -177,7 +177,7 @@ main(void) { feedcurrent->total++; fputs("<tr><td>", stdout); - printtime(parsedtime); + fputs(fields[FieldTimeFormatted], stdout); fputs("</td><td>", stdout); if(isnew) fputs("<b><u>", stdout); diff --git 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);