Visualizzazione dei risultati da 1 a 3 su 3
  1. #1
    Utente di HTML.it L'avatar di henry78
    Registrato dal
    May 2001
    Messaggi
    1,264

    Strano problema con Date.....

    non riesco a capire...

    sul mio hosting, se utilizzo la funzione date in questo modo, mi viene generato questo errore:

    - riga 30 [date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead - 30]

    - in /www/xxxxxxxxxx/sito.com/prova.php


    non faccio altro che dichiarare:

    $data1 = date("Y-m-d");


    Coma mai? E' un problema del server??

  2. #2
    Includi all'inizio del tuo script un codice come questo:

    Codice PHP:
    date_default_timezone_set('Europe/Rome'); 

  3. #3
    Utente di HTML.it L'avatar di henry78
    Registrato dal
    May 2001
    Messaggi
    1,264
    Originariamente inviato da filippo.toso
    Includi all'inizio del tuo script un codice come questo:

    Codice PHP:
    date_default_timezone_set('Europe/Rome'); 

    GRazie!

    stavo a pazzià...

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.