Coder Social home page Coder Social logo

Comments (6)

mo-esmp avatar mo-esmp commented on September 6, 2024 1

@followynne the returned time from the server is 15:30:34 but the UI shows 12:30:34. According to this issue, Serilog uses the DateTimeOffset to store dates.

from serilog-ui.

followynne avatar followynne commented on September 6, 2024 1

@mo-esmp

I think it's the expected behavior (we show date converted to local time).

@arrio89 can you please confirm us if you're in a -3 hrs TZ, compared to UTC?

from serilog-ui.

mo-esmp avatar mo-esmp commented on September 6, 2024

@arrio89 What data provider are you using?
@followynne Could you please check if in frontend time is converted to UTC?

from serilog-ui.

followynne avatar followynne commented on September 6, 2024

Hello @mo-esmp 😊

I gave a quick check, we're using this fN from date-fns that outputs the date in local timezone (I think it's better for the end user).

We can review and define a specific behavior for dates in the updated ui app 😊

@arrio89 can you kindly provide more info on what errors did you find? I don't notice them in the screenshot.

from serilog-ui.

arrio89 avatar arrio89 commented on September 6, 2024

Hey Everyone,

the bug is that de UI show different hour compared with de returned by server, i mark in the screenshot this difference.
My PC is in Time zone in Buenos Aires (GMT-3).

from serilog-ui.

followynne avatar followynne commented on September 6, 2024

Hi @arrio89,

Thanks for the feedback!

The current behavior is to show the date and time converted in local user time ; on the server you store an UTC date while in app you'll see it with -3 hrs offset (as per your timezone).

from serilog-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.