summaryrefslogtreecommitdiff
path: root/input_gadgets.c
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-30 10:00:21 +0100
committerErich Eckner <git@eckner.net>2018-10-31 21:48:36 +0100
commit4743e2a38c354669b7ac7f269a628aacfb38f02a (patch)
tree041886ac25d983446579910835f1c55906bbc338 /input_gadgets.c
parent86074fa3b45c751881e4e81eea6c0c21b2208d37 (diff)
downloadanzeige-4743e2a38c354669b7ac7f269a628aacfb38f02a.tar.xz
input_gadgets.c: skip year & seconds on displaying
Diffstat (limited to 'input_gadgets.c')
-rw-r--r--input_gadgets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/input_gadgets.c b/input_gadgets.c
index 850c738..df0abe1 100644
--- a/input_gadgets.c
+++ b/input_gadgets.c
@@ -860,9 +860,9 @@ char *gadgets_retrieve_weather_warnings(char *output, int max_len)
ende += snprintf(ende, output + max_len - ende, "%s", warnings[i].event);
if (output + max_len - ende > 0) {
if (warnings[i].onset > time(NULL))
- ende += strftime(ende, output + max_len - ende, " ab %F %T", localtime(&warnings[i].onset));
+ ende += strftime(ende, output + max_len - ende, " ab %m-%d %H:%M", localtime(&warnings[i].onset));
if (warnings[i].expires < time(NULL) + warnings_future_timespan)
- ende += strftime(ende, output + max_len - ende, " bis %F %T", localtime(&warnings[i].expires));
+ ende += strftime(ende, output + max_len - ende, " bis %m-%d %H:%M", localtime(&warnings[i].expires));
if ((i+1<warnings_len) && (output + max_len - ende > 0))
ende += snprintf(ende, output + max_len - ende, "; ", warnings[i].event);
}