-
Notifications
You must be signed in to change notification settings - Fork 148
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
utility::datetime.to_string() is breaking with debug break (version 7.5.0) #379
Comments
Hi @surendernitj, how did you install storage sdk and cpprest sdk, via vcpkg or nuget? |
I installled it via nuget package. |
Well, can you try 7.5.0.2 and see if this issue persists? 7.5.0 has a severe issue. If this issues still exists in 7.5.0.2, can you share some code snippet that can reproduce this issue so that we can investigate? |
I dont see 7.5.0.2 version in the release notes. I will try few older versions to see if it works. Sample code that breaks is: utility::datetime time; |
Its the same issue with 7.5.0.2 version. Its most probably related to casablanca and it seems its an issue with the min datetime. |
The default constructor of |
Code here https://microsoft.github.io/cpprestsdk/asyncrt__utils_8h_source.html datetime() : m_interval(0) It this changed now? This code used to work fine but its breaking with the upgrade. |
|
let me ask you a question, what do you expect to get from that piece of code?
|
The product code it not just this piece of code. I shared it in very simplified form.
Could you please help me understand how i can set the minimum file time value for (1601-01-01T00:00:00Z) utility:datetime object. I tried setting is by utility::datetime::from_string("1601-01-01T00:00:00Z") but it still fails when later on datetime is converted into string. |
The issue here is Can you try or something like |
Nope, 1601-01-01T00:00:01Z does not work. I am using different base value 2000-01-01T00:00:00Z which works for me. Clearly its a breaking change. |
It seems following change broke it microsoft/cpprestsdk@f10d9f8 and as per the test, bound conditions are |
I upgraded from 5.2.0 to 7.5.0, build is green but utility::datetime.to_string() is breaking. Here is the stack
Program: c:\ut\TableMetadataStoreTests\TE.exe
File: minkernel\crts\ucrt\src\appcrt\stdio\output.cpp
Line: 273
Expression: ("Buffer too small", 0)
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
The text was updated successfully, but these errors were encountered: