Translation of date of last login not correct
-
Hi,
After the update to version 2.5 and having created a new translation file for dutch (I will send it to you by email), I noticed that the date was still in English, while all the text was translated correctly.
I tracked the issue down to line 129 in sb-login.php
In the function get_last_login, the option for localizing the date in the mysql2date function was false, when it should be true.
This is the code I changed it to and it works now.function get_last_login($user_id) { $last_login = get_user_meta($user_id, 'last_login', true); $date_format = get_option('date_format') . ' ' . get_option('time_format'); $the_last_login = mysql2date($date_format, $last_login, true); echo $the_last_login; }
Please change it in your code for the next version.
Thanks
- The topic ‘Translation of date of last login not correct’ is closed to new replies.