Make WordPress Core

Opened 9 years ago

Last modified 4 years ago

#29390 new defect (bug)

add filter for get_date_from_gmt()

Reported by: zakrot's profile zakrot Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.2
Component: I18N Keywords: has-patch needs-refresh
Focuses: Cc:

Description

Please add filter for i18n date`s in get_date_from_gmt();

Buddypress use this function in admin section for display posts time, and we can't change dates via i18n and filters for Persian dates (Jalali Calendar).

get_date_from_gmt() is located in wp-includes/formatting.php

Thank you

Attachments (2)

29390.php (1.9 KB) - added by realloc 9 years ago.
Instances of date() and gmdate() in get_date_from_gmt() and get_gmt_from_date() replaced with date_i18n()
29390.patch (2.0 KB) - added by realloc 9 years ago.
Created from root directory & saved as .patch

Download all attachments as: .zip

Change History (5)

#1 @johnbillion
9 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release
  • Type changed from enhancement to defect (bug)
  • Version set to 1.2

Thanks for the report zakrot.

Looks like the instances of date() and gmdate() in this function need to be replaced with date_i18n().

@realloc
9 years ago

Instances of date() and gmdate() in get_date_from_gmt() and get_gmt_from_date() replaced with date_i18n()

@realloc
9 years ago

Created from root directory & saved as .patch

#2 @realloc
9 years ago

  • Keywords has-patch added; needs-patch removed

#3 @chriscct7
8 years ago

  • Keywords needs-refresh added
Note: See TracTickets for help on using tickets.