We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem: I was saving the creation time of transaction in the database with
$transaction = Recurly_Transaction::get($id); $creationdatetime = $transaction->created_at->format('Y-m-d H:i:s')
But that date and time aren't in my timezone, so Now I have to set the timezone every time before I save it or use it
$transaction = Recurly_Transaction::get($id); $creationdatetime = $transaction->created_at->setTimezone(new DateTimeZone('America/New_York'))->format('Y-m-d H:i:s');
Is there a way to make the created_at property to always be set to my timezone?
I may just write a wrapper around the class to do this, but I thought I'd see if there was already a way around this.
The text was updated successfully, but these errors were encountered:
Nevermind, I just realized with daylights savings time its always best to use Zulu timezone
Sorry, something went wrong.
No branches or pull requests
Problem:
I was saving the creation time of transaction in the database with
But that date and time aren't in my timezone, so Now I have to set the timezone every time before I save it or use it
Is there a way to make the created_at property to always be set to my timezone?
I may just write a wrapper around the class to do this, but I thought I'd see if there was already a way around this.
The text was updated successfully, but these errors were encountered: