1
Tianne
Japanese Date Format in userinfo.php
  • 2010/9/29 3:02

  • Tianne

  • Just popping in

  • Posts: 19

  • Since: 2009/10/2


Hi,

Where can I edit the part to change the date format
from this 2010-6-28 3:43:33 to this 2010年06月28日
for registration date.

I checked user_userinfo.html and found this
<{$thisUser->get('user_regdate')|xoops_formattimestamp:l}>

I changed it to:
<{$thisUser->get('user_regdate')|xoops_formattimestamp:xoops_formattimestamp:'Y/m/d'}>

it show 2010/06/28 which is good but I could not figure out
how to insert the japanese character.

2
ghia
Re: Japanese Date Format in userinfo.php
  • 2010/9/29 9:31

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Do you want specific Japanese separator characters?
Is that not accomplished by using them in the format string?
eg
<{$thisUser->get('user_regdate')|xoops_formattimestamp:xoops_formattimestamp:'Y年0m月d日'}>

3
Tianne
Re: Japanese Date Format in userinfo.php
  • 2010/9/30 5:22

  • Tianne

  • Just popping in

  • Posts: 19

  • Since: 2009/10/2


No, I actually did that yesterday right after I got the right date format but including the japanese characters in between the code gives an error.

not quite sure why but probably japanese characters are not unicode.

4
Tianne
Re: Japanese Date Format in userinfo.php
  • 2010/9/30 5:35

  • Tianne

  • Just popping in

  • Posts: 19

  • Since: 2009/10/2


oppps sorry Ghia, i tried to edit the code again and it somehow works now... I don't know why but I swear I did the same thing the other day, maybe i deleted quatation mark.

nway it work fine now!

Login

Username:
Password:

Lost Password? Register now!

Who's Online

66 user(s) are online (43 user(s) are browsing Support Forums)


Members: 0


Guests: 66


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits