Code Monkey home page Code Monkey logo

Comments (7)

andmarti1424 avatar andmarti1424 commented on June 7, 2024

What do you have in set in tm_gmtoff configuration variable..? You may have to adjust it.
EDIT: if you are off by an hour try reducing it or increasing it by 3600..

from sc-im.

niceiq avatar niceiq commented on June 7, 2024

The issue persists. I tried adding and subtracting 3600, but neither has any effect.

from sc-im.

andmarti1424 avatar andmarti1424 commented on June 7, 2024

What value do you have configured?

from sc-im.

niceiq avatar niceiq commented on June 7, 2024

image

The default value is 10800, I had it set at both 7200 and 14400 (+- 3600). datefmt stills shows the wrong hour.

from sc-im.

andmarti1424 avatar andmarti1424 commented on June 7, 2024

I wonder if this has something to do with your LOCALE

from sc-im.

niceiq avatar niceiq commented on June 7, 2024

I don't know.

The output of date is Wed Oct 4 16:10:05 EDT 2023. I am in the right timezone in everything.

It's the epoch timestamp that it gets wrong when I do datefmt from the string.

image

But when I convert the same date using date on my system, it works fine:

image

from sc-im.

niceiq avatar niceiq commented on June 7, 2024

I wonder if this has something to do with your LOCALE

I think it has something to do with my timezone.

I am currently on Eastern Daylight Time, which of course, adds an hour to to my time during the summer.

image

However, the date command on my system outputs the right thing, but it looks like the datefmt() command in sc-im is confused with that. Is there a way in the config to zet the time zone to EST? I think this might fix the issue.

Thank you.

from sc-im.

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.