Welcome Guest Search | Active Topics | Members | Log In | Register

Date field formats in My Movies API Options · View
pauven
Posted: Sunday, April 28, 2024 3:16:54 PM

Groups: Member

Joined: 5/13/2009
Posts: 301
Location: Georgia, USA

Rank:
Rank based on contribution points and purchased points. Click to see details. (3548)
Hey Brian,

I have a My Movies user that recently complained to me about incorrect dates in CMC, specifically the Disc Release Date, though based on my investigation I believe the issue affects a lot more dates than he realized.

Anyway, the issue is that his My Movies API outputs the dates as MM-DD-YYYY, with dash delimiters, which broke my code since I was only expecting slashes, i.e. MM/DD/YYYY.

I figured it was the Windows Region settings, he is in Canada and the Short Date format was set to YYYY-MM-DD (different order, but dashes). I had him change it to MM/DD/YYYY and reboot, but no matter what, it didn't affect the API output, he still got dashes.

I then tested on my own My Movies install, changing it from MM/DD/YYYY to YYYY-MM-DD, rebooting to ensure it applied, and yet the My Movies API still outputs MM/DD/YYYY with slashes.

While this isn't a big deal as I've already coded a fix to accept dashes, I would like to understand what is controlling the date format in the My Movies API. Is this set at install time and unchangeable? Or is there a setting somewhere that we can adjust if necessary?

Will it always be either MM/DD/YYYY or MM-DD-YYYY, or are there other date field formats that I might come across?

Thanks!
Paul

Chameleon MediaCenter (CMC) v7.0 - A FREE WMC replacement GUI for My Movies Collection Management on Win7/8.1/10/11, plus a Music Library and App Launcher!
binnerup
Posted: Sunday, April 28, 2024 5:41:50 PM

Groups: Administration , Windows RT/8 Discussion Group

Joined: 2/1/2005
Posts: 49,680
Location: Aarhus, Denmark

Rank:
Rank based on contribution points and purchased points. Click to see details. (163084)
I believe, as I remember it, the API always outputs the US date format, no matter the regional settings of the device, specifically because you then can parse as US always.

That is at least how we community between our own services.

Having trouble installing or upgrading to My Movies 5? Click here for troubleshooting.

Having a problem? Searching our Knowledge Base is always the first step.

How can I produce a log file in My Movies for Windows?

How can I fully uninstall My Movies for Windows
pauven
Posted: Tuesday, April 30, 2024 4:35:21 PM

Groups: Member

Joined: 5/13/2009
Posts: 301
Location: Georgia, USA

Rank:
Rank based on contribution points and purchased points. Click to see details. (3548)
Ok, thanks Brian. I'll chalk this one user's experience with a non-US date as some type of anomaly. Perhaps they installed another piece of software that tweaked a setting that messed with the MM API dates. Very weird. But in 7 years this is the only user that ever reported this issue. I just did a simple text replacement, swapping slashes for dashes, and now it's working for this user too.

This user also asked about showing actor/crew data. I know years ago I asked if you would add this to the API. I do understand you've stopped development of the API so I guess that won't be happening. One thing I've long been curious about is how you got this data to show in WMC. It seemed like WMC also used the API, but since actor/crew bios and photos were in WMC, I must be wrong about how you got that data into WMC. Would you be willing to share how this worked? Any chance I could use this with CMC?



Chameleon MediaCenter (CMC) v7.0 - A FREE WMC replacement GUI for My Movies Collection Management on Win7/8.1/10/11, plus a Music Library and App Launcher!
Users browsing this topic
guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Powered by Yet Another Forum.net version 1.9.0 (NET v4.0) - 10/10/2006
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.