user-1923
02-03-2018, 01:32 AM
I'm running get_iplayer 3.12.0 from a Windows 7 command prompt.
I noticed a few years ago that the ISO date/times fields when using the --info option do not take account of UK local time switching between Coordinated Universal Time (UTC) and British Summer Time (BST).
For example,
produces:
Here the expires field gives the expiry date/time in UTC although the UK standard time will be BST. Running the same command after 2018-03-25T01:00:00Z (when the UK switches from UTC to BST) the output will be different, with the expires field showing the UK standard time: 2018-03-29T23:30:00+01:00. Similar inconsistencies occur around the time in October when UK standard time switches from BST to UTC.
The output isn't wrong, but I'd prefer to see:
so I know at a glance that I've got until 11.30pm on 29th March to grab the programme, without having to 1. spot that the expiry date is not in UK standard time, 2. try to remember whether I'm supposed to add or subtract an hour to convert the specified date/time to local time, and 3. perform the calculation.
If the get_iplayer distribution of Perl can't handle this, there must be a Perl module available that can be passed a date/time in UTC which will then return the same date/time for the UK locale.
I noticed a few years ago that the ISO date/times fields when using the --info option do not take account of UK local time switching between Coordinated Universal Time (UTC) and British Summer Time (BST).
For example,
Code:
C:\>get_iplayer -i --pid b09tmxv2 | findstr /r "^available: ^firstbcast: ^expires: ^title:"
get_iplayer Output:
available: 2018-02-27T22:30:00+00:00
expires: in 27 days 21 hours (2018-03-29T22:30:00+00:00)
firstbcast: 2018-02-27T22:25:00Z
title: The Archiveologists: Series 1: Telecommunications Services for the 1990s
The output isn't wrong, but I'd prefer to see:
get_iplayer Output:
available: 2018-02-27T22:30:00+00:00
expires: in 27 days 21 hours (2018-03-29T23:30:00+01:00)
firstbcast: 2018-02-27T22:25:00+00:00
title: The Archiveologists: Series 1: Telecommunications Services for the 1990s
If the get_iplayer distribution of Perl can't handle this, there must be a Perl module available that can be passed a date/time in UTC which will then return the same date/time for the UK locale.