gaziks52 Posted November 10, 2009 Report Share Posted November 10, 2009 (edited) Sveiki! lūk vienkāršs kods <?php $time = time(); echo $time; echo '<br />'; echo strftime("%c", $time); ?> šādi tiek izdrukāts uz localhost 1257886792 11/10/09 22:59:52 šādi kad kods hostēts uz kautkāda ārzemju servera (laikam Holandes, īsti neatceros :), bet tas nav svarīgi) 1257886581 Tue Nov 10 20:56:21 2009 kā lai panāk to, ka hostējot uz tā servera tiktu drukāts latvijas laiks? mēģināju setlocale(LC_ALL, 'lv_LV') , bet tas tikai nomainīja dienas nosaukumu no "Tue" uz "Otrdiena" Edited November 10, 2009 by gaziks52 Quote Link to comment Share on other sites More sharing options...
Kavacky Posted November 10, 2009 Report Share Posted November 10, 2009 date.timezone "" PHP_INI_ALL Available since PHP 5.1.0? Quote Link to comment Share on other sites More sharing options...
gaziks52 Posted November 11, 2009 Author Report Share Posted November 11, 2009 (edited) "These PHP configuration settings are customizable by the server administrator. They are listed for reference only." njā ... ciks es sapratu, tā kā man ir vislētākais hosting plāns tad es nevaru izmainīt php.ini ------------------------------------------------------------------------------------------------------------- nē tomēr kļūdījos .... viss sanāca lietojot šo fukciju date_default_timezone_set('Europe/Riga'); paldies par info Edited November 11, 2009 by gaziks52 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.