 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
February 18th, 2005, 11:09 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Mar 2004
Posts: 34
| 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.
|
| |
February 19th, 2005, 07:29 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
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
Last edited by Chuck S; February 19th, 2005 at 07:39 AM.
|
| |
February 19th, 2005, 03:58 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Mar 2004
Posts: 34
|
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?
|
| |
February 19th, 2005, 05:30 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
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.
|
| |
February 19th, 2005, 06:32 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Mar 2004
Posts: 34
|
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.
Last edited by digitaldingus; February 19th, 2005 at 06:39 PM.
|
| |
February 19th, 2005, 06:47 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
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.
|
| |
February 19th, 2005, 07:02 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Mar 2004
Posts: 34
| 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.
|
| |
February 19th, 2005, 07:07 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Mar 2004
Posts: 34
|
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?
Last edited by digitaldingus; February 19th, 2005 at 07:09 PM.
|
| |
February 19th, 2005, 07:30 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
No you dont alter the files.
It is in the main Photopost config GMT time offset try putting 3 or -3
|
| |
February 19th, 2005, 08:57 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Mar 2004
Posts: 34
|
Which file? I need a specific name. And a specific area to where I adjust. |
| |
February 19th, 2005, 09:21 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
The main config in admin section.
The other one is just integration options.
|
| |
February 20th, 2005, 03:09 AM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Mar 2004
Posts: 34
|
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.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 01:53 AM. | |