Giter VIP home page Giter VIP logo

Comments (6)

jhvst avatar jhvst commented on May 19, 2024

Post creation time is an UNIX timestamp. The database driver declares it as such: databases/gorm/posts.go#L53

This formatted time is controlled by main.go#L72-L74

What this means is that the time is most likely taken from the Heroku's server time, which seem to be the time of Ireland.

If you can confirm that the time difference between you and Ireland is 4 hours, I could take a further look into the bug.

from vertigo.

 avatar commented on May 19, 2024

@9uuso yeah, theres a 5 hour difference

from vertigo.

jhvst avatar jhvst commented on May 19, 2024

As far as I know, there is no way to feed the server your current time without using JS. I have to figure if I need to implement a select option to choose your timezone.

from vertigo.

 avatar commented on May 19, 2024

@9uuso well if the select option is the simplest way to do this then I guess that it doesn't sound bad, 👍

from vertigo.

jayrox avatar jayrox commented on May 19, 2024

a timezone select option is probably the best option. just dont forget to
keep the timezone data stored as utc

On Wed, Jun 24, 2015 at 1:02 PM, My-khael Pierce [email protected]
wrote:

@9uuso https://github.com/9uuso well if the select option is the
simplest way to do this then I guess that it doesn't sound bad, [image:
👍]


Reply to this email directly or view it on GitHub
#37 (comment).

from vertigo.

jhvst avatar jhvst commented on May 19, 2024

branches merged

from vertigo.

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.