slartibartfast wrote:
> It works OK on my Windows 10 laptop. Why would Raspbian be different if
> the timezone is set correctly?
>
> Sent from my Pixel 3a using Tapatalk
It's a bit of a convoluted answer to that. This has caught me out a
couple of times.
I get the duration of a track as a minutes in text e.g "00:04:00" from
the Virgin API. I use a simple convenient trick to convert that into
seconds using perl function that will convert a date/time string into
the number of seconds since 01/01/1970. For a simple "00:04:00" without
the date that should just give me the straight seconds. That usually
works, but some operating systems remember that there was no GMT time
in 1970 ! They were experimenting with british summer time all year
round !!!
So actually your Raspbian Operating System is right, your windows 10 is
wrong and so was my picoreplayer installation!
Anyway, sorry that was probably a more indepth answer than you were
expecting.
The lesson I learnt was to stop being a bit lazy and stop using that
trick to calculate seconds from a time string.
EXPECTINGTOFLY PLUGINS :
- *BBC Sounds* :
https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin
- *BBC Sounds Wiki* :
https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/wiki
- *Virgin Radio (UK)* :
https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin
- *Times Radio* :
https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN
------------------------------------------------------------------------
expectingtofly's Profile: http://forums.slimdevices.com/member.php?userid=63263
View this thread: http://forums.slimdevices.com/showthread.php?t=113974
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins