PDA

View Full Version : Possible to add new Time/Date formats?



Sam Lowry
2006-02-14, 11:59
I'd like to have h:mm (12h) instead of h:mm pm (12h)

Basically 12 hour time without the AM/PM. Usually pretty obvious to me if it's daytime or night :)

Is there a way to add a new format?

Thanks

Bart
2006-02-14, 13:39
I'd like to have h:mm (12h) instead of h:mm pm (12h)
Change the line in SlimServer.pref file from
timeFormat = |%I:%M:%S %p
to
timeFormat = |%I:%M
Restart slimserver

Sam Lowry
2006-02-15, 14:43
Change the line in SlimServer.pref file from
timeFormat = |%I:%M:%S %p
to
timeFormat = |%I:%M
Restart slimserver

Hi-
Tried this but not only did it not work, it reset itself when I restarted the SlimServer.

Any other ideas?

kdf
2006-02-15, 14:52
Quoting Sam Lowry <Sam.Lowry.23aj1b (AT) no-mx (DOT) forums.slimdevices.com>:

>
> Bart Wrote:
>> Change the line in SlimServer.pref file from
>> timeFormat = |%I:%M:%S %p
>> to
>> timeFormat = |%I:%M
>> Restart slimserver
>
> Hi-
> Tried this but not only did it not work, it reset itself when I
> restarted the SlimServer.
>
> Any other ideas?

make sure that you make that change when you have the server off.
prefs are written out as the server stops, so any change when the
server is running will just get overwritten. Also, changing the prefs
file directly doesn't affect an already running server.
-k

Sam Lowry
2006-02-15, 15:38
Quoting Sam Lowry <Sam.Lowry.23aj1b (AT) no-mx (DOT) forums.slimdevices.com>:

>
> Bart Wrote:
>> Change the line in SlimServer.pref file from
>> timeFormat = |%I:%M:%S %p
>> to
>> timeFormat = |%I:%M
>> Restart slimserver
>
> Hi-
> Tried this but not only did it not work, it reset itself when I
> restarted the SlimServer.
>
> Any other ideas?

make sure that you make that change when you have the server off.
prefs are written out as the server stops, so any change when the
server is running will just get overwritten. Also, changing the prefs
file directly doesn't affect an already running server.
-k


That did it. Thanks! Clearly I still have lots to learn about my SB3.
- SL