New issue
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
Fix #9875 SugarFeed shows 0 seconds ago and negative interval for cer… #9876
Conversation
This pull request has been mentioned on SuiteCRM. There might be relevant details there: https://community.suitecrm.com/t/bug-in-my-activity-stream/87625/2 |
Thanks! It's an alias of DateTime::createFromFormat
We should probably check if the function returned successfully... |
|
Thanks @abuzarfaris ! |
Hello @abuzarfaris would you be so kind to squash commits in your branch into one (it means to combine multiple commits into single commit)? Regards, |
I have tried to squash can you check if it's correct |
Hi @abuzarfaris, thank you once again. There shouldn't be any |
556450f
to
09a542c
Compare
@clemente-raposo Fixed the merge issue and squashed the commits |
…rval for certain datetime formats Use proper user datetime format to convert datetime string to timestamp in SugarFeed.php
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Checked each Time and Date Format, appears to as though Hours/Minutes renders as expected.
…tain datetime formats
Use proper user datetime format to convert datetime string to timestamp in SugarFeed.php
Description
use date_create_from_format with current user datetime format instead of strtotime because strtotime to time does lots of assumtions e.g if the separator is a slash (/), then the American m/d/y is assumed. If the separator is a dash (-) or a dot (.), then the European d-m-y format is assumed
Motivation and Context
SugarFeeds shows correctly for all users with different datetime format settings
How To Test This
Types of changes
Final checklist