BenSibley / Tracks

Tracks WordPress Theme
https://www.competethemes.com/tracks/
9 stars 2 forks source link

Date format doesn't work with timestamp added #31

Closed BenSibley closed 9 years ago

BenSibley commented 9 years ago

solution https://wordpress.org/support/topic/problems-with-french-localization?replies=15#post-6752157

BenSibley commented 9 years ago

Both Chinese dialects do not support this format:

get_the_date( 'n/j/Y g:i a' )

I'm assuming because there is no concept of am or pm. Instead, use this:

get_the_date( 'n/j/Y g:i' )

Use an if statement to set the format somewhere in functions.php and then use that function instead of muddying up the content file.

if ( get_locale() == 'zh_TW' || get_locale() == 'zh_CN' )

BenSibley commented 9 years ago

NO! remove all of it = get_the_date()