1

我在 wordpress 中有 echo the_date 函数来显示帖子日期。我想将其修改为匈牙利语。我尝试使用 setlocale 但它不起作用(也许日期不能用 setlocale 编辑?)有人可以帮我吗?

目前它看起来像这样

<span class="single-date"><?php setlocale(LC_TIME,'hu_HU.utf-8'); echo the_date('F d, Y');  ?> </span>

日期显示如下:2015 年 2 月 3 日

我需要将月份名称修改为匈牙利语。

谢谢!

4

1 回答 1

0

You have to check out your WordPress settings instead. You can set your timezone there, and also edit what the_date displays in forms of the date format.

于 2015-02-09T15:58:10.090 回答