0

Is it possible to display date/time of current user in his/her profile page. It should be base on his/her time zone settings. How can I achieve this goal?

1 Answer 1

0

You can modify the user pages (view/edit/etc) with the user templates, like the user profile template In the template's top documentation there's some good info like:

 * Use render($user_profile) to print all profile items, or print a subset
 * such as render($user_profile['user_picture']). Always call
 * render($user_profile) at the end in order to print all remaining items. 

So you can first dpm the $user_profile array and find out the user's timezone, then add php code after the print render($user_profile); to print the date/time according to the timezone value you retrieved from the user profile array.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.