Make WordPress Core

Opened 12 years ago

Last modified 15 months ago

#29390 assigned defect (bug)

add filter for get_date_from_gmt()

Reported by: zakrot Owned by: pbearne
Priority: normal Milestone: Future Release
Component: Date/Time Version: 1.2
Severity: normal Keywords: has-patch
Cc: Focuses:

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 12 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 12 years ago.
Created from root directory & saved as .patch

Download all attachments as: .zip

Change History (8)

#1 @johnbillion
12 years ago

  • Keywords needs-patch added
  • Milestone Awaiting Review → Future Release
  • Type enhancement → defect (bug)
  • Version → 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
12 years ago

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

@realloc
12 years ago

Created from root directory & saved as .patch

#2 @realloc
12 years ago

  • Keywords has-patch added; needs-patch removed

#3 @chriscct7
11 years ago

  • Keywords needs-refresh added

#4 @swissspidy
23 months ago

  • Component I18N → Date/Time
  • Milestone → Future Release

#5 @pbearne
21 months ago

  • Owner set to pbearne
  • Status new → assigned

This ticket was mentioned in ​PR #9221 on ​WordPress/wordpress-develop by ​@sainathpoojary.


15 months ago
#6

  • Keywords needs-refresh removed

Trac ticket: #29390

Note: See TracTickets for help on using tickets.