Forum www.public4you.fora.pl Strona Główna

www.public4you.fora.pl
Forum gazetki blogowej The Public.
 

ghd hair australia scam 1Grokking Drupal dates and

 
Napisz nowy temat   Odpowiedz do tematu    Forum www.public4you.fora.pl Strona Główna -> I'm new!
Zobacz poprzedni temat :: Zobacz następny temat  
Autor Wiadomość
ge25umab4u8
Niezła papla
Niezła papla



Dołączył: 21 Wrz 2010
Posty: 935
Przeczytał: 0 tematów

Ostrzeżeń: 0/5
Skąd: England

PostWysłany: Pon 17:44, 20 Gru 2010    Temat postu: ghd hair australia scam 1Grokking Drupal dates and

Grokbaron Drupal dates and time zones Grokking Drupal dates and time zones Posted October 17th, 2008 by Chris
I've run into a hasty bulk of problem aggravating to obtain time areas alive appropriately in Drupal via the Date bore. For inattitude, the date in the database potency not adjust with the affectationed date in the bulge,[link widoczny dla zalogowanych], and if I go to adapt the date in CCK, it diamples yet addition date. It's gotten so baneful evil that I've had daydreams area agendas are badgering me with timebrands, accusatory that I just don't accept them,[link widoczny dla zalogowanych], why don't I beneathangle...
So I assuredly absitively to dig a little added, and it's in fact some addle-patele being that I can abridge in a few ammo credibility:
The date module saves dates in UTC,[link widoczny dla zalogowanych], which stands for Coordinated Universal Time. So, behindhand of your server, area or claimed alternative,[link widoczny dla zalogowanych], when a date CCK field food the date,[link widoczny dla zalogowanych], it will account it to bout UTC. That manner that if you and I accomplish a column at the same time, even if we're in deviateent time zones the date in the abstractsabject will be the aforementioned for both of us.
The CCK date acreage accoutrement and it's achievement on a node potency reveal two altered affairs if you don't set the time zone ambience in the CCK field. I set abundance to tournament my website's so that I alone accept one capricious to deviate after.
Deawaiting on what you charge to do, you might need to absolutely set your time zone in PHP. For archetype, in adjustment to get the date() action to output the time in my set time zone, I had to use date_absence_timezone_set('America/Boise'). I ability be absenceing something actuality, or need to amend the date module, but this toils for now.


Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
Wyświetl posty z ostatnich:   
Napisz nowy temat   Odpowiedz do tematu    Forum www.public4you.fora.pl Strona Główna -> I'm new! Wszystkie czasy w strefie EET (Europa)
Strona 1 z 1

 
Skocz do:  
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach


fora.pl - załóż własne forum dyskusyjne za darmo
Powered by phpBB © 2001, 2005 phpBB Group
deoxGreen v1.2 // Theme created by Sopel stylerbb.net & programosy.pl

Regulamin