diff options
author | unknown <hiltjo@.(none)> | 2012-11-11 16:20:14 +0100 |
---|---|---|
committer | unknown <hiltjo@.(none)> | 2012-11-11 16:20:14 +0100 |
commit | 2e5dc6fd18ab80e5974180d9236e81ac274d1d6d (patch) | |
tree | 50b4345e46bbf230ea2cbb12bbb3189641afc1ac | |
parent | 17e42efaca7d14a3ad44deab4c4507bae16fe7c3 (diff) |
show formatted time, dont show interpreted time since its not always correct
Signed-off-by: unknown <hiltjo@.(none)>
-rw-r--r-- | sfeed.c | 2 | ||||
-rw-r--r-- | sfeed_html.c | 2 | ||||
-rw-r--r-- | sfeed_plain.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -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("<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 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); |