grokability / jamf2snipe

Import and sync assets from a JAMFPro instance to Snipe-IT asset management.
MIT License
113 stars 55 forks source link

Purchase date warning caused by returned data from Snipe #55

Closed goneafk closed 3 years ago

goneafk commented 4 years ago

https://github.com/ParadoxGuitarist/jamf2snipe/blob/4264dda403b878ac1bcdb190c9cfec2f69f44bb9/jamf2snipe#L447

I was troubleshooting why I'm getting these warnings when the purchase date is set correctly.

This particular line is comparing the input versus what's returned from Snipe after.

It fails on Purchase Date because it's sending YYYY-MM-DD but getting back YYYY-MM-DD 00:00:00.

u'2015-04-25' vs u'2015-04-25 00:00:00'

It is setting the attribute, just not validating it correctly.

goneafk commented 4 years ago

I think I have this fixed with https://github.com/ParadoxGuitarist/jamf2snipe/pull/56

ParadoxGuitarist commented 3 years ago

Yep, merged! Thanks! (sorry it took so long)