Title: Localized date solution
Last modified: July 14, 2019

---

# Localized date solution

 *  [kalligator](https://wordpress.org/support/users/kalligator/)
 * (@kalligator)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/localized-date-solution/)
 * The plugin does not show a localized version of the chosen date format.
    To fix
   it go to `wp-attachments.php` line 179 and change:
 * `$wpattachments_string = str_replace("%DATE%", $wpatt_date->format(get_option('
   wpatt_option_date_localization')), $wpattachments_string);`
 * to
 * `$wpattachments_string = str_replace("%DATE%", date_i18n(get_option('wpatt_option_date_localization'),
   $wpatt_date->getTimestamp()), $wpattachments_string);`

The topic ‘Localized date solution’ is closed to new replies.

 * ![](https://ps.w.org/wp-attachments/assets/icon-256x256.png?rev=2617427)
 * [WP Attachments](https://wordpress.org/plugins/wp-attachments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-attachments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-attachments/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-attachments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-attachments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-attachments/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [kalligator](https://wordpress.org/support/users/kalligator/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/localized-date-solution/)
 * Status: not a support question