Fork me on GitHub

Date and Time in theme from local machine  Bottom

  • I am using a theme called MTModular.

    Near the top of the theme it displays the day, date and time like this:

    Monday, February 09, 2004 - 07:33 PM

    The problem is that the correct information is:

    Monday, February 09, 2004 - 10:33 AM

    The instruction used to generate this is:

    echo ml_ftime(_DATETIMELONG, (GetUserTime(time())));

    I am not a PHP genius. The powers that are the developers of PHP do not contact me for advice or for my opinion. That being said,

    How do I amke the date/time show correctly for the machine that is being used to view the page?

    Joe Dunn
  • I think your best bet is to your a Javascript clock in the theme...

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • You can set the time in your administration panel.

    Go to:
    Administration - Settings - Time zone offset
  • My bad - it sounded like he was asking about displaying the user's local time (regardless of the Admin settings)...

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • hmm, that may have been what he was asking and I misread it. icon_rolleyes

    "How do I amke the date/time show correctly for the machine that is being used to view the page?"

    If it is for the machine that is viewing it, it will have to be done by a javascript to read that information off of the visitor's access.

    However, there is another place where the visitor can set this himself on the site (if he is registered), under

    My Account - Change Personal Information

    HTH
  • 0 users

This list is based on users active over the last 60 minutes.