Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Sansa e200v1 12 hour time format yields date instead of minutes.
« previous next »
  • Print
Pages: [1]

Author Topic: Sansa e200v1 12 hour time format yields date instead of minutes.  (Read 1517 times)

Offline redrick

  • Member
  • *
  • Posts: 9
Sansa e200v1 12 hour time format yields date instead of minutes.
« on: March 09, 2010, 07:48:33 PM »
I'm running 3.50 on a Sansa e200v1 with Lucid Plain Theme.

Rockbox keeps perfect time in both 24 and 12 hour modes in System/Time & Date but if you select the 12 hour mode, in the WPS instead of the correct minutes you get the current month (right now "03").  I.e. if the time is 4:36pm the WPS will say 4:03pm.  24 hour mode works fine.  Date reads correctly in both modes.  I tried using a few other themes and the same thing occurs.

Sorry if I've posted this in the wrong section.  I don't see anyone else posting about the problem in any of the forums, so perhaps it's an e200-only problem, but I have no way of knowing.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Sansa e200v1 12 hour time format yields date instead of minutes.
« Reply #1 on: March 09, 2010, 08:25:00 PM »
I don't know much about themes, but my guess is that the theme itself doesn't do 12 hour time and you need to use a different one, or edit it to work.
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Sansa e200v1 12 hour time format yields date instead of minutes.
« Reply #2 on: March 10, 2010, 03:18:19 AM »
There is a conditional 24/12 hour time format tag in the WPS that can be used to make the WPS automatically use the correct format, which all WPSs should use IMO (I for instance dislike the 12 hour format :))
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline Multiplex

  • Member
  • *
  • Posts: 440
Re: Sansa e200v1 12 hour time format yields date instead of minutes.
« Reply #3 on: March 10, 2010, 12:28:39 PM »
I would guess that this is a simple typo in the WPS - minute is '%cM' and month is '%cm' - if I get a few minutes I'll take a look.

EDIT: minutes found...

In line24 of .rockbox\wps\LucidPlain.wps;
Quote
%ac%?cf<%cH:%cM|%cl:%cm>:%cS %ce/%cm/%cY%ar
Should be
Quote
%ac%?cf<%cH:%cM|%cl:%cM>:%cS %ce/%cm/%cY%ar

And this really should be here http://forums.rockbox.org/index.php?board=24.0 the original author may see it then and fix the theme.
« Last Edit: March 11, 2010, 04:48:31 AM by Multiplex »
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Sansa e200v1 12 hour time format yields date instead of minutes.
« Reply #4 on: March 11, 2010, 12:55:22 PM »
And it does nicely adapt to 12/24 hour too :)  I suspect the author uses 24h and therefore never saw this.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline redrick

  • Member
  • *
  • Posts: 9
Re: Sansa e200v1 12 hour time format yields date instead of minutes.
« Reply #5 on: March 11, 2010, 03:10:32 PM »
Quote
I suspect the author uses 24h and therefore never saw this.

Yes, I found this in a number of themes, not just the three "Lucid" ones.  Perhaps authors in a hurry are just copying the line and as 24h seems most popular it doesn't get noticed.  I'm afraid I always go with 12h and what's most familiar to avoid confusion, so I also switched  the %ce/%cm to %cm/%ce despite the European way making more sense. 

Thank you Multiplex for the correction, I don't know all the codes as I am an extreme newbie to Rockbox & haven't found where to look them up.  And thanks Alex for moving my bad-guess topic where it belongs.
Logged

Offline Multiplex

  • Member
  • *
  • Posts: 440
Re: Sansa e200v1 12 hour time format yields date instead of minutes.
« Reply #6 on: March 11, 2010, 05:14:16 PM »
Quote from: AlexP on March 11, 2010, 12:55:22 PM
And it does nicely adapt to 12/24 hour too :)  I suspect the author uses 24h and therefore never saw this.
I agree on both counts!

Quote from: redrick on March 11, 2010, 03:10:32 PM
I don't know all the codes as I am an extreme newbie to Rockbox & haven't found where to look them up.
No problem - we were all newbies once (well, all but the small team that started this amazing thing!).

The reference for WPS tags is here http://www.rockbox.org/wiki/CustomWPS there is a guide (a bit out of date I think) to basic WPS creation here http://www.rockbox.org/wiki/SimpleGuideToWPSMaking but a good way of learning is by looking at the existing ones. I can't really help any more because I'm no good at making WPSs.

Oh - welcome to Rockbox!
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Sansa e200v1 12 hour time format yields date instead of minutes.
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.085 seconds with 15 queries.