INTERACT FORUM

More => Old Versions => JRiver Media Center 27 for Windows => Topic started by: EnglishTiger on February 06, 2021, 02:41:17 am

Title: There may be an error in the "Date(Day)" Field/Tag.
Post by: EnglishTiger on February 06, 2021, 02:41:17 am
Whilst double checking my new TrackInfo Plugins I spotted that when the "Date" field/tag only contains a Year the "Date(Day)" field/tag always contains a 1, the "Date(Month)" field/tag was always blank and the "Date(Year)" field/tag always had the correct value.

I'm using TrackInfo_Insert(Date) to get the Date, TrackInfo_Insert(Date (Day)) to get the Day, TrackInfo_Insert(Date (Month)) to get the Month and TrackInfo_Insert(Date (Year)) to get the Year.

I looked to see what would happen if the "Date" field/tag was empty and that worked correctly as the "Date(Day)" field/tag was also empty plus all the tags/fields contain the correct values when the "Date" field/tag contains a mm/dd/yyyy format date.

Title: Re: There may be an error in the "Date(Day)" Field/Tag.
Post by: Matt on February 08, 2021, 09:27:32 am
Year only dates parse to 1/1/[Year] so it's kind of a corner case.  Not sure there's anything we can change.
Title: Re: There may be an error in the "Date(Day)" Field/Tag.
Post by: EnglishTiger on February 08, 2021, 10:27:08 am
Year only dates parse to 1/1/[Year] so it's kind of a corner case.  Not sure there's anything we can change.

Matt would it be possible to set up a conditional test so that when a Date field/tag only contains 4 digits/characters the Day field/Tag is set to null in the same way the Month field/tag appears to be?
Title: Re: There may be an error in the "Date(Day)" Field/Tag.
Post by: Matt on February 08, 2021, 11:24:31 am
I'll try this change for a coming build:
Changed: Showing the day for a year only date will show an empty string instead of one.