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 334 times)

EnglishTiger

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 966
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
Win NUC - VENOEN 11Th NUC Mini PC Core i7 1165G7,Dual HDMI 2.0+Mini DP,Windows 11 Mini Desktop Computer,Thunderbolt 4.0,1 Lan, USB-C,Wifi,Bluetooth 5.0,32GB RAM Toshiba MQ04ABF100 ‎500Gb 5400 RPM ‎eSATA HD, Gigabyte GP-GSM2NE3512GNTD 1Tb NVMe SSD, Samsung 870 QVO 8 TB SATA 2.5 Inch SSD (MZ-77Q8T0) in Sabrent Ultra Slim USB 3.0 to 2.5-Inch SATA External Aluminium Hard Drive Enclosure (EC-UK30)

Apple 2020 Mac mini M1 Chip (8GB RAM, 512GB SSD)
Sabrent Thunderbolt 3 to Dual NVMe M.2 SSD Tool-Free Enclosure with Sabrent 2TB Rocket NVMe PCIe M.2 2280 High Performance SSD + Crucial P3 Plus 4TB M.2 PCIe

ET Skins & TrackInfo Plugins - https://englishtiger.uk/index.html

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41954
  • 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

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 966
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
Win NUC - VENOEN 11Th NUC Mini PC Core i7 1165G7,Dual HDMI 2.0+Mini DP,Windows 11 Mini Desktop Computer,Thunderbolt 4.0,1 Lan, USB-C,Wifi,Bluetooth 5.0,32GB RAM Toshiba MQ04ABF100 ‎500Gb 5400 RPM ‎eSATA HD, Gigabyte GP-GSM2NE3512GNTD 1Tb NVMe SSD, Samsung 870 QVO 8 TB SATA 2.5 Inch SSD (MZ-77Q8T0) in Sabrent Ultra Slim USB 3.0 to 2.5-Inch SATA External Aluminium Hard Drive Enclosure (EC-UK30)

Apple 2020 Mac mini M1 Chip (8GB RAM, 512GB SSD)
Sabrent Thunderbolt 3 to Dual NVMe M.2 SSD Tool-Free Enclosure with Sabrent 2TB Rocket NVMe PCIe M.2 2280 High Performance SSD + Crucial P3 Plus 4TB M.2 PCIe

ET Skins & TrackInfo Plugins - https://englishtiger.uk/index.html

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41954
  • 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