Support and General Use > Theming and Appearance Customization
%cac returns wrong day of the week
David Marsh:
I was round my mother's this afternoon, and showed her rockbox running on my iPod Video. She quickly noted that the day of the week displayed was wrong. Much to my disappointment she was right. I don't know why I didn't spot it before.
I checked the system date/time setting and it correctly shows today (Wed) but in the 'Now Playing' screen it shows "Thu". Is this a bug?
The actual date format string I am using is:
--- Code: ---%ca e b,H:Mc
--- End code ---
I tried the other day of the week format codes:
--- Quote --- From: http://www.rockbox.org/twiki/bin/view/Main/CustomWPS
u day of week (1..7); 1 is Monday
w day of week (0..6); 0 is Sunday
--- End quote ---
u returns 5 and w returns 4, so w is right but u is wrong also.
I couldn't find any other refs in the forums to this issue. Does anyone else get this too?
ice-m:
I've got the same problem in my iRiver h-10 20 GB. In the 'Now playing' screen there is for example Sat and actual day is Thursday. Does anyone know how to fix that?
robin0800:
The Real Time Clock Format Has Changed
See http://www.rockbox.org/twiki/bin/view/Main/CustomWPS#Real_Time_Clock
Real Time Clock
Tags allowing to add a clock to your WPS. They will be empty if the time isn't set correctly.
Tag Description
%cd day of month (01..31)
%ce day of month, blank padded ( 1..31)
%cH hour (00..23)
%ck hour (0..23)
%cI hour (01..12)
%cl hour (1..12)
%cm month (01..12)
%cM minute (00..59)
%cS second (00..60)
%cy last two digits of year (00..99)
%cY year (1970...)
%cP upper case AM or PM indicator
%cp lower case am or pm indicator
%ca abbreviated weekday name (Sun..Sat)
%cb abbreviated month name (Jan..Dec)
%cu day of week (1..7); 1 is Monday
%cw day of week (0..6); 0 is Sunday
For example, I use: %ca, %cb %cd, %cH:%cM:%cS.
This displays, assuming it's January 1st, a Sunday, at 04:10 and 42 seconds: Sun, Jan 01, 04:10:42.
so check the theme to see if its been updated.
shoe:
I have this problem too (Ipod 4g). The %ca displays the wrong day of the week. If I go to the settings menu, to set the date and time, the correct day of the week is displayed there. Must be a bug.
robin0800:
Just for info it works OK on an ipod 5G 60Gb
I use %ar%ca.%ce %cb. %cl:%cM %cp
And Displays Sat.12 May. 4:40 pm
Navigation
[0] Message Index
[#] Next page
Go to full version