
10-02-2010, 11:39:11
|
| |
Alıntı: isletmeci Nickli Üyeden Alıntı
Sıkıcı bir durum  Daha önce kullanan arkadaşlar varsa yardımcı olurlar abi. | sunucudan mı çekiyor tarih olayını tam anlayamadım..Gerçi o kadar bilsem çok şey değişirdi de PHP- Kodu: /** * A wrapper for date that will format dates using the UTC timezone. * This is used for domain expiration dates as UTC is pretty much * the standard for domain expiration dates. * * @param string $format Date format * @param integer $timestamp Unix timestamp * @return string Formatted date */ function dnp_date($format, $timestamp) { if (empty($timestamp)) { $timestamp = time(); }
// Get the current timezone $current_tz = date_default_timezone_get();
// Set to UTC, as that's pretty much the standard for domain expiration date_default_timezone_set('UTC');
// format the time $date = date($format, $timestamp);
// Set back to old timezone date_default_timezone_set($current_tz);
return $date; }
Şöyle birşey buldum ama.. etkisi varmıdır bilmiyorum..
__________________ Projelerinize Kimlik Kazandırın...
Konu axikedi tarafından (10-02-2010 Saat 11:45:44 ) değiştirilmiştir..
|