Base solution for your next web application

Activities of "mika"

Hi

I try to get DateTime from client, send it to database and then edit same datetime. I use the demo datetimepicker and get the date and post it to backend.

Here are the post parameters: post_parameters.PNG eventDate is the datetime object and i wrote on eventText what I set on datetimepicker. So here, I set the time to 8:30 (GMT +2) and eventDate shows that date in UTC format. Everything ok.

These values are saved to database and model is full auditet entity so there is also creation time: database.PNG

There EventDate is saved as UTC format.

Question 1:

  • <ins>Why CreationTime is not UTC?</ins> I made the post 8.30 on local time (GMT+2).

Now I Get the date and here is result from backend: get_response.PNG

Again event date is UTC, but there is nothing to clarify that this is UTC time? Question 2:

  • What I should do at client end to set it as UTC time?

This is the input field I use.

<input class="form-control" #EditEventTimeInput name="EditEventTimeInput"
                               type="datetime" formControlName="eventDate">

Form creation, input initial value set.

eventDate: this.originalHistory.eventDate.format('L LT'),

after this form initialization, I set the datetime locale and format as demo site shows

$(this.eventTime.nativeElement).datetimepicker({
            locale: abp.localization.currentLanguage.name,
            format: 'L LT'
        });

Now when date is set on input it shows 03/16/2018 6:30 AM, so it shows UTC format, or it is not converted to local time.

Angular & Core

<cite>dparizek: </cite> So better to include only what is needed - can anyone point me to how to install just parts of primeng?

<cite>ismcagdas: </cite> So, if you want to use another component from PrimeNg, you just need to import it into your module and then you can use it in the html/ts files. You can check the usages of PrimeNG components here <a class="postlink" href="https://www.primefaces.org/primeng/#/">https://www.primefaces.org/primeng/#/</a>.

Yes you can Import, if the component was already installed. But is there a way to install new Primeng components, e. DataView that is not installed <a class="postlink" href="https://www.primefaces.org/primeng/#/dataview">https://www.primefaces.org/primeng/#/dataview</a>

Hi! I upgraded to V6.0 and now dropdowns are not showing text correctly.

Any adwise?

Angular

Hi

There everything looks ok. We had V5.5 before.

Hi,

No was not able to solve it yet. Code is not in any production or stating server. We need to solve some other problems as well before we can put it on any server.

Any ideas where to look?

Hi

Angular (single solution) & Core

I have been updating our system to V7.0.0 and got everything to work locally. Then I published project to our staging server at Azure as usual, but Angular part was not working. It actually was the old version of angular project! I was able to tell that serverside was updated.

I noticed that wwwroot/dist is updating, but angular project was previously loaded from wwwroot and not wwwroot/dist. I copied wwwroot/dist to wwwroot and it started to work.

So there has been some changes that I haven't noticed. Can you help me with this?

Hi @ismcagdas

Can you tell me where this automatic copying is done, I use windows OS.

This has been working for me, but now after updating, it stopped to work. I suspect that I may have done something wrong during the update if you have not changed anything.

Hi

We noticed that our Mobile app changes language to english randomly. We have updated our code with V7.1.0 version. Any adwise how to fix?

Mika

Our users complain that somethimes there is a notification that "Current user is not logged in", both mobile and angular pages. I have noticed couple of times when I have opened mobile app, but this happens during normal use.

Mika

Showing 1 to 10 of 36 entries