seek nephrite Posted August 5, 2021 Report Share Posted August 5, 2021 salut, am facut un fs de timp si date, pe localhost mergea perfect, cand l-am pus pe host da ora gresita, la fel si time, gen da 5/08/2021 si ora 21. Quote Link to comment Share on other sites More sharing options...
Toader Mihai Posted August 6, 2021 Report Share Posted August 6, 2021 Mai pe scurt, nu iti indica ora corecta? Quote Link to comment Share on other sites More sharing options...
Banditul Posted August 6, 2021 Report Share Posted August 6, 2021 Cel mai probabil serverul pe care iti este hostat scriptul se afla in alta locatie din lume si nu in romania. Daca nu este vps/dedicat ca sa ai access sa faci modificari la ora/data o solutie ar fi sa iti faci o functie care corecteaza ora/data si iti retuneaza aceasta informatie corectat ca o poti pune in acel textdraw. O sa revin cu edit cu un exemplu dupa ce termin munca si am acces la pc personal Edit: Poti folosi acest include e mult mai rapid decat sa iti generezi o functie de corectie si sa iei in calcul mai multe lucruri inclusiv ani bisecti https://github.com/Agneese-Saini/SA-MP/blob/master/pawno/include/timestamp.inc In loc de gettime/getdate poti folosi ParseTimestamp new year, month, day, hour, minute, second; ParseTimestamp(gettime(), year, month, day, hour, minute, second, 3); // 3 este Hour GMT este timezone in momentul de fata Romania are GMT+3 pe timp de vara, la iarna o sa fie GMT+2 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.