Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for date and timezone issues diferences
I noticed on joomla systesm where the timezone was not UST (the default) the time recorded as "created" and "modified" would not be the same. So, for example, if my Joomla system is set as timezone London, during summertime (BST), which is GMT +1 at the moment, and create an article that has fields attatched, then the created date will be set to the system time, but the modified date will be set to London time. This is just when the getlastId and getcategorylastId events are called. Basically, date( 'Y-m-d H:i:s' ) will take the system time, but Joomla uses Timezone adjusted time for the other fields. This is not a big issue, but it caused problems for us related to caching, and I thought it'd be a useful fix to contribute. There is a quick video explanation at https://youtu.be/vtV0PnmJS0I
- Loading branch information