| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| New Member Join Date: Aug 2008
Posts: 12
![]() | PHP Time zone help So i am running xZero classifieds, and i am trying to set it up so that the time is for Mountain Standard. I want to know if this is possible by editing anything here? Basically, its the time function that everything else goes to, i do believe ????: NamePros.com http://www.namepros.com/programming/509550-php-time-zone-help.html Code: function QuickDate($timestamp, $showtime=TRUE, $gmt=FALSE, $format="")
{
if(!$format)
{
if($showtime) $format = $GLOBALS['langx']['datetimeformat'];
else $format = $GLOBALS['langx']['dateformat'];
}
return xDate($timestamp, $gmt, $format, $GLOBALS['langx']['months'], $GLOBALS['langx']['weekdays']);
} |
| |
| | #2 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | can you put in the function for xDate as well?
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |
| | THREAD STARTER #4 (permalink) |
| New Member Join Date: Aug 2008
Posts: 12
![]() | Not sure which one it would be, but here is a few of the ones i found Code: if ($_GET['date']) $xdate = $_GET['date'];
else $xdate = date("Y-m-d"); Code: preg_match("/([0-9]+)-([0-9]+)-([0-9]+)/", $xdate, $dp);
$xdatestamp = mktime(0, 0, 0, $dp[2], $dp[3], $dp[1]);
$xdate_y = $dp[1];
$xdate_m = $dp[2];
$xdate_d = $dp[3]; |
| |
| | #6 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | neither of those two, it'll be something like: ????: NamePros.com http://www.namepros.com/showthread.php?t=509550 PHP Code: also, did you try date_default_timezone_set("timezone"); like sutuicom suggested?
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |
| | #8 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | just stick it in the file all the way at the top where you got the code from your FIRST post from. see if it does anything.
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |