Permalink
Browse files

set the default timezone

  • Loading branch information...
1 parent 353e3ea commit c8b5872807211ae2ddf8b20a27e1789195923a74 @skyebook skyebook committed Apr 8, 2012
Showing with 4 additions and 1 deletion.
  1. +1 −1 betaville-functions.php
  2. +3 −0 config.php
View
@@ -60,7 +60,7 @@ function fd($value)
{
array($datetime = explode(" ",$value));
array($date = explode("-",$datetime[0]));
- array($date1 = explode(":",$datetime[1]));
+ array($date1 = explode(":",$datetime[1]));
$final = date("Y-m-d H:i:s", mktime($date1[0],$date1[1],$date1[2],$date[1],$date[2],$date[0]));
return $final;
View
@@ -1,4 +1,7 @@
<?php
+// Set the default timezone
+date_default_timezone_set('America/Los_Angeles');
+
define('WEB_URL', 'http://localhost/betaville-website');
define('SERVICE_URL', 'http://localhost/service/service.php');
define('THUMBNAIL_URL', 'http://localhost/storage/designthumbs/');

0 comments on commit c8b5872

Please sign in to comment.