summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/strftime.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/strftime.c')
-rw-r--r--apps/plugins/lua/strftime.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/plugins/lua/strftime.c b/apps/plugins/lua/strftime.c
index df230f7bd0..681d4be1cf 100644
--- a/apps/plugins/lua/strftime.c
+++ b/apps/plugins/lua/strftime.c
@@ -80,7 +80,13 @@ again:
80 case 'U': no = (tm->tm_yday - tm->tm_wday + 7) / 7; goto _no; 80 case 'U': no = (tm->tm_yday - tm->tm_wday + 7) / 7; goto _no;
81 case 'W': no = (tm->tm_yday - (tm->tm_wday - 1 + 7) % 7 + 7) / 7; goto _no; 81 case 'W': no = (tm->tm_yday - (tm->tm_wday - 1 + 7) % 7 + 7) / 7; goto _no;
82 case 's': { 82 case 's': {
83 time_t t = rb->mktime((struct tm*)tm); 83 time_t t =
84#if CONFIG_RTC
85 rb->mktime((struct tm*)tm)
86#else
87 0
88#endif
89 ;
84 char buf[101]; 90 char buf[101];
85 char* c; 91 char* c;
86 buf[100]=0; 92 buf[100]=0;