PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Setting The Time So It's Correct? (http://www.photopost.com/forum/photopost-pro-how-do-i/112262-setting-time-so-its-correct.html)

digitaldingus February 18th, 2005 11:09 PM

Setting The Time So It's Correct?
 
For the life of me, I can't see any time config options in the PP Admin areas. Just where is it, anway.

Chuck S February 19th, 2005 07:29 AM

What version you using? The timeoffset from server is in the config and the data format is also but time is only in 12 hour format. PP5 brings in 24 hour time ability

digitaldingus February 19th, 2005 03:58 PM

I'm using v4.86. I would think there could be a way to get the time from the database being used for the program or the forum time?

Chuck S February 19th, 2005 05:30 PM

Time does not come from a database it comes from a server and thats why in the config you have a global offset. If your server is say in california and you live in New York. You place 3 in the server offset place in the photopost config so posts display eastern time.

digitaldingus February 19th, 2005 06:32 PM

So, when you say config file, which one. The config_int.php or the config_inc.php. Or is there another place.

Oh wait, I would imagine it's in the pp_inc.php. I see where it says gmtoffset, but I'm a little over my head on messing around with this. :)

P.S. I'm exactly 8 hours behind of what I should be.

Chuck S February 19th, 2005 06:47 PM

Well this is where you set versus the time difference between server and your location you want everyone to think your in so. Then users select there own specific timeoffset to view things in there own time.

For example my server is in central time. I am in eastern so I want everyone to say think my site is eastern as thats where I am so I place 1 in the global offset.

digitaldingus February 19th, 2005 07:02 PM

Quote:

function thetime($inhour,$inmin) {
if ($inmin < 10) {
$inmin="0$inmin";
}
if ($inhour == 0) {
$inhour = str_replace("0", "12", $inhour);
$outclock=$inhour.":".$inmin."am";
return($outclock);
}
else {
if ($inhour < 10) {
$inhour = str_replace("0", "", $inhour);
}
}
if ($inhour > 11) {
if ($inhour != 12) {
$inhour=$inhour-12;
}
$outclock=$inhour.":".$inmin."pm";
}
else {
$outclock=$inhour.":".$inmin."am";
}

return($outclock);
}


function formatpptime( $date ) {
global $Globals, $User;

$uoffset = $User['offset'];
$soffset = $Globals['gmtoffset'];
$date = $date + ($uoffset * 3600) + ($soffset *3600);

list($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($date);

$cclock = thetime($hour,$min);

return( $cclock );
}


function formatppdate( $date, $glob_date = "" ) {
global $Globals, $User;

$uoffset = $User['offset'];
$soffset = $Globals['gmtoffset'];
$date = $date + ($uoffset * 3600) + ($soffset *3600);

list($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($date);
$mon++;
$year=1900+$year;.
So, where do I make the changes.

digitaldingus February 19th, 2005 07:07 PM

Ok, here's what I did. I changed the 3600 values to 10800, and it appears to be working. I'm on the west coast (PST time), btw. I figured 3600 * 3?

Chuck S February 19th, 2005 07:30 PM

No you dont alter the files.

It is in the main Photopost config GMT time offset try putting 3 or -3

digitaldingus February 19th, 2005 08:57 PM

Which file? I need a specific name. And a specific area to where I adjust. :)

Chuck S February 19th, 2005 09:21 PM

The main config in admin section.

The other one is just integration options.

digitaldingus February 20th, 2005 03:09 AM

Ok, I was thinking you meant an actual file to configure, versus the admin panel. I now see the GMT Offset. Got it working and revised the other file back to 3600.


All times are GMT -5. The time now is 09:07 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97