pure ghd Grokking Drupal dates and time zones Im

 
Napisz nowy temat   Odpowiedz do tematu    Forum Naukowe Koło Chemików Uniwersytetu Gdańskiego Strona Główna -> Hyde Park
Zobacz poprzedni temat :: Zobacz następny temat  
Autor Wiadomość
guy875789b
Ununokt



Dołączył: 21 Paź 2010
Posty: 795
Przeczytał: 0 tematów

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

PostWysłany: Wto 6:51, 21 Gru 2010    Temat postu: pure ghd Grokking Drupal dates and time zones Im

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, and if I go to adapt the date in CCK,[link widoczny dla zalogowanych], 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,[link widoczny dla zalogowanych], 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, which stands for Coordinated Universal Time. So, behindhand of your server, area or claimed alternative, 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,[link widoczny dla zalogowanych], even if we're in altered time zones the date in the abstractsabject will be the aforementioned for both of us.
The CCK date field accoutrement and it's output on a node ability reveal two d2d9cd3ddc2e858461191e555026674angled affairs if you don't set the time zone ambience in the CCK acreage. I set abundance to tournament my website's so that I alone accept one capricious to deviate after.
Deawaiting on what you need to do, you potency need to absolutely set your time zone in PHP. For archetype, in adjustment to get the date() action to achievement the time in my set time zone, I had to use date_absence_timezone_set('America/Boise'). I might be 27bfede879cea672c4cbaharmfulbfcd54d3ing something actuality, or charge 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 Naukowe Koło Chemików Uniwersytetu Gdańskiego Strona Główna -> Hyde Park Wszystkie czasy w strefie EET (Europa)
Strona 1 z 1

 
Skocz do:  
Możesz pisać nowe tematy
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


Bluetab template design by FF8Jake of FFD
fora.pl - załóż własne forum dyskusyjne za darmo
Powered by phpBB © 2001, 2002 phpBB Group
Regulamin