Comments (6)
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.
@9uuso yeah, theres a 5 hour difference
from vertigo.
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.
@9uuso well if the select option is the simplest way to do this then I guess that it doesn't sound bad, 👍
from vertigo.
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.
branches merged
from vertigo.
Related Issues (20)
- Replace Martini with idiomatic HTTP middleware HOT 16
- Titles and slugs
- Creation date HOT 2
- feed and atom issue HOT 1
- login/register links while signed-in HOT 13
- error handler and submit button HOT 5
- Should ID be string or int? HOT 3
- Markdown as default post format HOT 6
- commenting system or pure medium-style? HOT 2
- Search and clauses HOT 18
- Pretty emails HOT 1
- source installation errors HOT 2
- installation from source issues HOT 6
- posts per page/pagination HOT 1
- Effort to compile Vertigo on Windows dev box fails HOT 4
- issue on addons HOT 5
- Unable 2 create session HOT 1
- Message "layout" is undefined HOT 1
- Does Heroku charge from creadit card for custom domain HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vertigo.