<cite>tteoh: </cite>
<cite>ismcagdas: </cite> Hi,
You can use Thread.CurrentThread.CurrentUICulture.
Thanks.
Hi Support,
The above is only checking the language of current run-time right?
What about User's current language saved in AbpSettings?
I realized that each time the user select a language other than the system default language, the setting is saved into AbpSettings. However, this setting is NOT loaded and set the UI accordingly, right? (AngularJS template)
Thanks, /tommy
Hi Support,
I found this: <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/2103#thread-subscription-status">https://github.com/aspnetboilerplate/as ... ion-status</a>
Any chance of releasing a patch? Need it for my current project. Thanks.
/tommy
<cite>ismcagdas: </cite> Hi,
You can use Thread.CurrentThread.CurrentUICulture.
Thanks.
Hi Support,
The above is only checking the language of current run-time right?
What about User's current language saved in AbpSettings?
I realized that each time the user select a language other than the system default language, the setting is saved into AbpSettings. However, this setting is NOT loaded and set the UI accordingly, right? (AngularJS template)
Thanks, /tommy
Hi, I am sure if using role to achieve above is such a good idea.
You probably need to customize a survey assignment table that has a FK to AbpUsers table. From there, you could filter the survey based on Current UserId against the assignments - My Assigned Surveys.
Just wonder if the current data filter class (for tenancy) is a good candidate or just implement the filter as application logic part of survey table/Repository filter.
Perhaps, Support has a better recommendation.
Thanks, /tommy
<cite>drcgreece: </cite> Thanks I'll check that
FYI, if you are using AngularJS UI, the theme is referenced in two places. The other place is the MVC views.
From what I can see, there are some js files referenced as part of metronic assets.
Good luck! /tommy
<cite>tteoh: </cite> Hi Support,
At this juncture, I m still figuring how the language preference (screenshot) is being implemented. Where it is being stored as part of user-specific language preference.
Use case: at the point of user creation, the preferred language can be set. Therefore, user is presented with the preferred language login page the first time.
For example, the current user registration screen, language selection can be entered.
Thanks, /tommy
I finally figured it out and will start a separate discussion thread on this topic. Thanks.
/tommy
Hi,
The theme settings is initialized at app.js for AngularJS based application. You might want to start from there.
Search for "/* THEME SETTINGS */
Regards, /tommy
Hi Support,
At this juncture, I m still figuring how the language preference (screenshot) is being implemented. Where it is being stored as part of user-specific language preference.
Use case: at the point of user creation, the preferred language can be set. Therefore, user is presented with the preferred language login page the first time.
For example, the current user registration screen, language selection can be entered.
Thanks, /tommy
<cite>ismcagdas: </cite> Hi,
@drcgreece,
When returning data to client, shouldn't the Abp Framework convert those Dates to the user's TimeZone instead of using again Clock.Normalize?
As @tteoh also metioned, when you use UtcClockProvider, the date is returned to client in UTC not in user's timezone. You should use momentjs to handle client side operations to handle user's timezone.
@tteoh, your findings are correct :).
Thanks.
Hi Support,
Just one question, while default is saving with UTC but if I wish to save date/time with specific timezone instead of UTC, WHERE and HOW should i implement this?
Use Case: for system monitoring and internal reporting where I don't have to convert from UTC date/time.
Thanks.
Hi,
Based on documentation, my understanding is below:
Clock.Provider set in Global.asax determines the system timezone. Default, it is set to UTC for AspNet Zero template.
Therefore, Abp will always stored date/time as UTC in DB.
On client side, it will receive date/time in UTC. You wil need to use timing property of abp object to retrieve User's timezone set from My Setting, to perform the required translation using moment.js directive provided by abp framework. I believe this is already the default implementation on standard views.
NOTE: If you remove the default UTC, then Abp not do the conversion to UTC.
My learning is only up to here as I just completed writing a Real-time clock to be display at footer.cshtml. Based on local date/time, it is converted to Server Timezone and User Timezone retrieved from AbpSettings table.
If you have further findings, pls share here.
Thanks, /tommy
Dear Support,
I still can't seem to find Language Preference setting by User in version (Abp.Zero v1.5.0.0)
Please advice.
Thanks, /Tommy