diff options
| author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-05-27 23:02:17 +0000 |
|---|---|---|
| committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-05-27 23:02:17 +0000 |
| commit | 1e980cd9776b27a4251f5b78d4bc87098e55ca07 (patch) | |
| tree | 919af734f644720cf8e0030a4639a3599d4e35dd /apps/plugins/lua/strftime.c | |
| parent | b2581e143d7c9a564026fbe3bf4f471b2260fd0f (diff) | |
| download | rockbox-1e980cd9776b27a4251f5b78d4bc87098e55ca07.zip rockbox-1e980cd9776b27a4251f5b78d4bc87098e55ca07.tar.gz rockbox-1e980cd9776b27a4251f5b78d4bc87098e55ca07.tar.bz2 rockbox-1e980cd9776b27a4251f5b78d4bc87098e55ca07.tar.xz | |
Fix yellow & red
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21107 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lua/strftime.c')
| -rw-r--r-- | apps/plugins/lua/strftime.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/plugins/lua/strftime.c b/apps/plugins/lua/strftime.c index df230f7..681d4be 100644 --- a/apps/plugins/lua/strftime.c +++ b/apps/plugins/lua/strftime.c @@ -80,7 +80,13 @@ again: case 'U': no = (tm->tm_yday - tm->tm_wday + 7) / 7; goto _no; case 'W': no = (tm->tm_yday - (tm->tm_wday - 1 + 7) % 7 + 7) / 7; goto _no; case 's': { - time_t t = rb->mktime((struct tm*)tm); + time_t t = +#if CONFIG_RTC + rb->mktime((struct tm*)tm) +#else + 0 +#endif + ; char buf[101]; char* c; buf[100]=0; |