esotalk / esoTalk

Fat-free forum software.
GNU General Public License v2.0
1.47k stars 237 forks source link

Use strftime() instead of date() in user profile #331

Closed inliquid closed 9 years ago

inliquid commented 10 years ago

When viewing last user activity: /core/views/member/profile.php:38

Should be

strftime(T("date.full"), $member["lastActionTime"])

inliquid commented 10 years ago

plus

/core/views/members/member.php:35

jgknight commented 9 years ago

Marked as a translation bug - currently these files use the date() function. Needs more investigating but from what I've read, strftime() is better when using languages other than english? @inliquid can you give an example of what's breaking?

tvb commented 9 years ago

Correct.

inliquid commented 9 years ago

Existing implementation doesn't work, f.i. when you try to see last user activity when viewing profile (by pointing mouse) - you see template instead of date/time. date() does not understand template T("date.full").