Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "kasem"

I think I figured out the reason. It seems repeating the following: https://support.aspnetzero.com/QA/Questions/7916

The last comment describes the problem. The user picks a local time while it's being converted and sent as a UTC date.

Not a very elegant solution though but I was able to fix this following the last comment instructions.

I'm now binding an independent model to datepicker with Date type. Populating this when editing the entity, and binding it back to the model before saving.

It's hard to provide the whole project and I don't have a demo project that repeats it too.

I can provide any needed details to help reproducing the problem. Here are additional details, hope they help:

  • Project is Utc and multi-timezone enabled
  • Timezone set on the tenant user is a local timezone (for instance UTC+2)

Hi

I have exactly the same problem. I tried adding the directives that already exist in my version but it doesn't work. I'm always getting -1 day. Date picked through DatePicker is correct but when saving -1 day is posted to server and stored that way in the database.

Thanks @maliming and @demirmusa

@demirmusa, what do you mean by "It is designed this way from the start"?

any news?

Yes. But every tenant has roles. When I configure static roles in the system they aren't added to existing tenants but new tenants only. I need them to be added to existing tenants as well

What do you mean by Start without Debugging ? How can I do this?

Hi @demirmusa

I'm sorry I can't provide a demo project. As I understood @ismcagdas is working to try reproducing and fixing the problem. Does this override the previous state of this ticket and demo is really blocking you now?

Hi @ismcagdas

Many cases are pointing to this one but I'm not 100% sure. It's a problem that worths investigating I think since I encounter it many times in debugging and users in production started complaining about a similar case

Attaching the validatedToken if it helps:

{{"alg":"HS256","typ":"JWT"}.{"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier":"9","http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name":"admin","AspNet.Identity.SecurityStamp":"SQCXBUYKAOGSPZ6AKQV2TOC5ZXE3X6NI","http://schemas.microsoft.com/ws/2008/06/identity/claims/role":["Admin"],"http://www.aspnetboilerplate.com/identity/claims/tenantId":"2","Application_StudyYearId":"4","sub":"9","jti":"400fd00d-3479-43da-82e0-e4f6c65bd538","iat":1574614578,"token_validity_key":"62d29227-3ce2-4e67-9395-3c68044d9c30","user_identifier":"9@2","token_type":"0","nbf":1574614578,"exp":1574700978,"iss":"MyApp","aud":"MyApp"}}

Showing 11 to 20 of 80 entries