Skip to content
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

#57683: Improve performance of mysql2date function #4062

Closed
wants to merge 1 commit into from
Closed

#57683: Improve performance of mysql2date function #4062

wants to merge 1 commit into from

Conversation

tanjimTC
Copy link

This change adds an optional fourth parameter to the mysql2date function to allow passing in the timezone.
If the timezone is not passed, the function will default to the value returned by wp_timezone.

This modification should improve the performance of the mysql2date function by reducing the number of calls to wp_timezone.

I have tested the changes and they seem to be working fine. However, I would appreciate it if you could take a look and let me know if there are any issues or further changes needed.

Thanks!

Trac ticket: https://core.trac.wordpress.org/ticket/57683

@tanjimTC tanjimTC closed this by deleting the head repository Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant