View Full Version : How does one add a new Time/Date format?
Sam Lowry
2008-12-07, 12:53
Hi-
I've asked this question before in the Slim server days, but I can't find the solution in Squeezecenter. I would like to add a new Long Date format without the year. Where and how do I do it?
Using 7.2.1 on Vista.
Thanks.
SL
> I've asked this question before in the Slim server days, but I can't
> find the solution in Squeezecenter. I would like to add a new Long Date
> format without the year. Where and how do I do it?
> Using 7.2.1 on Vista.
There's no way to add a format except by editing the perl source code. You'd have to install ActivePerl and run the perl version of SC. Then edit Slim/Utils/DateTime.pm -> longDateFormats() to add the desired format.
--
Michael
Sam Lowry
2008-12-10, 14:45
> I've asked this question before in the Slim server days, but I can't
> find the solution in Squeezecenter. I would like to add a new Long Date
> format without the year. Where and how do I do it?
> Using 7.2.1 on Vista.
There's no way to add a format except by editing the perl source code. You'd have to install ActivePerl and run the perl version of SC. Then edit Slim/Utils/DateTime.pm -> longDateFormats() to add the desired format.
--
Michael
Is there a way just to remove the year from one of the preferences files?
> Is there a way just to remove the year from one of the preferences
> files?
you can edit the server.prefs file (while SC is stopped) and edit the
following line:
longdateFormat: "%A, |%d. %B %Y"
to fit your format. In the above case you'd have to remove the %Y.
Michael
Powered by vBulletin® Version 4.1.12 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.