Localise ListItem.Premiered

  Thread Rating:
  • 1 Votes - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
mortstar Offline
Senior Member
Posts: 281
Joined: Aug 2010
Reputation: 3
Post: #1
A little request...many skinners use ListItem.Premiered for air dates of episodes. This returns an unlocalised date format (e.g. 2012-04-24) as opposed to ListItem.Date which returns the same value but localised (e.g. 24/04/2012 (in UK))

[Image: all-banner.jpg]
(This post was last modified: 2012-04-24 01:48 by mortstar.)
find quote
pecinko Offline
Donor
Posts: 3,774
Joined: Dec 2008
Reputation: 51
Location: Prague / Belgrade
Post: #2
Agreed. I'll say it again - we need to clean up and merge different info labels that are pointing to the same thing.

I was using ListItem.Date but than found out that some of the plugins use .Premiered when they set content to episodes as it is used in Confluence.

My skins:

Amber
Quartz

find quote
Hitcher Offline
Skilled Skinner
Posts: 10,749
Joined: Aug 2007
Reputation: 98
Location: Eastleigh, UK
Post: #3
I think you'll find they do in fact refer to different dates even though this is not always the case.
find quote
Jezz_X Offline
Team-XBMC Skinner
Posts: 5,289
Joined: Jun 2006
Reputation: 57
Location: Earth
Post: #4
I think and I do mean "think" Date is the date on the file system ie: the date it was created on your computer so has a local time stamp and Premiered is the date that it fetches from the internet websites when it scrapes the data and those websites and they commonly use 2012-04-24 format because its sort able in the correct way
find quote
Japaja Offline
Fan
Posts: 515
Joined: May 2010
Reputation: 2
Location: Croatia
Post: #5
Cant that be converted just for display purposes? I mean if it's scraped from website in YYYY-MM-DD can it be at least shown as DD-MM-YYYY?
find quote
Icerat Offline
Senior Member
Posts: 156
Joined: Nov 2010
Reputation: 1
Post: #6
(2012-07-06 17:47)Japaja Wrote:  Cant that be converted just for display purposes? I mean if it's scraped from website in YYYY-MM-DD can it be at least shown as DD-MM-YYYY?

Can this be done as I use to ListItem.Premiered to show first aired info, if so how?

Old newbie trying his hardest to get his head around skinning lol, expect loads of questions :-)

It may be hard but the challenge of learning something new is fun :-)
find quote