rocketseat / adonis-timezone Goto Github PK
View Code? Open in Web Editor NEWTimezone provider for the Adonis framework
Timezone provider for the Adonis framework
Eg.
created_at
and updated_at
from this package is "2020-01-07 17:09:07"
Timezone set to Asia/Jakarta
My vps machine use America/New_York
timezone, and of course MySql will use this as the timezone
so whenever I save my record to database, it will automatically change to America/New_York
not my current settings with this package Asia/Jakarta
so the example given in above, database will save it to
created_at
= "2020-01-07 05:09:07"
updated_at
= "2020-01-07 05:09:07"
any step that i'm missing ? please some advice
thanks in advance
ps : I know I can change my vps timezone, but I avoid this way since in my database already has too much record
Issue description:
After install adonis-timezone using the process describe in readme.md the lib does not find the module Timezone/Trait in the first request, after of try again(another request) the error is: Cannot read property 'activate' of undefined. The problem is that the provider is not listed in start/app.js -> providers[]. I did a investigation and see that in documentation don't appear the inclusion of these provider, and these erros occurred.
Fix proposal:
Add the inclusion of provider in providers list in start/app.js file, I fixed the erros with this process.
Do I need to call middleware somewhere? The implementation here does not work.
Hi, this library don't work with nested relationships like:
const user = await User.query() .where('id', params.id) .with('image') .fetch()
Any suggest?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.