INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: There may be an error in the "Date(Day)" Field/Tag.  (Read 388 times)

EnglishTiger

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1088
There may be an error in the "Date(Day)" Field/Tag.
« 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.

Logged
Apple Mac Mini Desktop Computer with M4 Pro chip with 12 core CPU and 16 core GPU: 24GB Unified Memory, 512GB SSD Storage, Gigabit Ethernet, 3 Thunderbolt5 + 2USBC ports.

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42376
  • Shoes gone again!
Re: There may be an error in the "Date(Day)" Field/Tag.
« Reply #1 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.
Logged
Matt Ashland, JRiver Media Center

EnglishTiger

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1088
Re: There may be an error in the "Date(Day)" Field/Tag.
« Reply #2 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?
Logged
Apple Mac Mini Desktop Computer with M4 Pro chip with 12 core CPU and 16 core GPU: 24GB Unified Memory, 512GB SSD Storage, Gigabit Ethernet, 3 Thunderbolt5 + 2USBC ports.

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42376
  • Shoes gone again!
Re: There may be an error in the "Date(Day)" Field/Tag.
« Reply #3 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.
Logged
Matt Ashland, JRiver Media Center
Pages: [1]   Go Up