Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App settings performing unwanted changes on strings that look like date times #2491

Open
asos-martinsmith opened this issue Jun 5, 2024 · 3 comments

Comments

@asos-martinsmith
Copy link

asos-martinsmith commented Jun 5, 2024

I have an app setting with value "2024-05-18T00:00:00.000Z".

Immediately after deployment I noticed that it was showing up as "05/18/2024 00:00:00"

I tried changing it back to "2024-05-18T00:00:00.000Z" in the Portal but that too got converted to "05/18/2024 00:00:00".

Expected behaviour is that the function app should not be changing app settings in any way.

In my case the app setting is being used in a CosmosDB trigger StartFromTime attribute and this requires the ISO format - not this other format.

(I have seen similar unwanted behaviour before with Newtonsoft.Json - not sure if that is also causing the issue here JamesNK/Newtonsoft.Json#862)

@bhagyshricompany
Copy link

Thanks for reporting please share the all repro steps.Thanks

@asos-martinsmith
Copy link
Author

They are already shared.

Go into the portal.

Change an app setting to "2024-05-18T00:00:00.000Z"

Marvel as it gets silently changed to "05/18/2024 00:00:00"

@bhagyshricompany
Copy link

@fabiocav please comment.Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants