A way to change from military time?

I have seen several posts on this that no one answered for the poor poster... I have modified the date to be in the US standard version (that was easy enough) but I am curious is there a way to alter the variables for the time display to show time in the standard rather than military? Any ideas or knowledge on that one?

Quote · 11 Oct 2012

Okay, I am proud of myself.. I researched PHP coding at http://www.webdesign.org/web-programming/php/displaying-date-and-time-using-php.4702.html and was able to learn the codes to change my advanced settings_variables to display the date in standard US format and the time in standard format along with the am/pm....

 

It looks as though it is working everywhere on the site EXCEPT in the forums where it shows the time in US standard format, but does not display the AM or PM after the time... am I missing something? I have all the codes in the proper fields (including the little a) but it does not seem to be populating over to forums...

Any guidance??

Thanks!

Quote · 11 Oct 2012

Me, just posting to myself again in rapid fire lol.... okay.... forums still a bit of an issue with the am/pm but I also noticed that when you join the date is still showing y.d.m rather than m.d.y  ... It looks like this is a hard coded item..does anyone have the knowledge of where I can edit that?

 

thanks!

dateofbirth.JPG · 100.2K · 227 views
Quote · 11 Oct 2012

 Hello

Me, just posting to myself again in rapid fire lol.... okay.... forums still a bit of an issue with the am/pm but I also noticed that when you join the date is still showing y.d.m rather than m.d.y  ... It looks like this is a hard coded item..does anyone have the knowledge of where I can edit that?

 

thanks!

Where exactly do you see the DOB field in wrong format? If you give me a direct link I'll try to help you. The attached screenshot displays the Fields Builder in admin panel and tells nothing about the page where the issue can be seen.

About forum. It was a standalone script which was integrated into Dolphin. So, it may have its own date-time format setting. Did the date-time format change on forum's pages when you've changed it into Dolphin?

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 11 Oct 2012

Hi Anton! The site is http://tuscanyplaceresidents.com   ... I managed to get the time and date to appear to appear correctly (ie: 4:05pm / 10/11/2012) in the main site... news, log in, registered, etc... but in the forums it is now showing the date as above (correctly) by the variables I set under advanced setting, but I now face these two issues:

 

1) The time for forums is three hours behind; makes sense, they are west coast US.  I edited the htaccess file under my public_html folder by adding (on line #3) SetEnv TZ America/New_York which I was told would set the time for anything to the Eastern time zone.... this problem also happens when you view a members profile and last login for example..still three hours behind.  Is there somewhere else I can place a variable in a file to force east coast time?

2) When you JOIN the site, that calendar that pops up is still putting the date into Y/D/M rather than M/D/Y ((that is what I am trying to change))

 

Does that help any....?? I will go and check the forums directory now to see if there is more than one htacess file lying around.

Quote · 12 Oct 2012

Side note: I was also trying to find the php.ini file to just place the coding there for the time zone but for the life of me i cannot find that file anywhere

Quote · 12 Oct 2012

If you don't have a php.ini in the root of your dolphin site, then it's using server default which would be in the servers etc folder. But unless you have a dedicated or VPS you can't change that. And if you had a dedicated or VPS you could just change the clock to your own time zone. You could also just create a php.ini file in dolphins root folder also.


Anyhow. Remove it from the .htaccess file. I prefer to put it in inc/header.inc.php

Look for this near the end of the file.

ini_set('magic_quotes_sybase', 0);

Then put this line right after it.

date_default_timezone_set ('America/New_York');


https://www.deanbassett.com
Quote · 12 Oct 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.