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
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- alfonsomarin created topic »Fillters in Clip« 03:41 AM
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 03:19 AM
- frw responded to »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 22. May
- mdee responded to »Short URL questions« 22. May
- mesteele101 responded to »Problem in Database Connection« 21. May
- Herr.Vorragend responded to »Clip Documentation and Doubt« 19. May
- mazdev responded to »zikula 1.3.3. and IE9« 19. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Date and Time in theme from local machine
-
- Rank: Senior
- Registered: Sep 22, 2003
- Last visit: Oct 21, 2009
- Posts: 2774
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... -
- Rank: Senior
- Registered: Sep 22, 2003
- Last visit: Oct 21, 2009
- Posts: 2774
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... -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Jun 21, 2004
- Posts: 3
hmm, that may have been what he was asking and I misread it.
"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
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
