ge25umab4u8
Niezła papla
Dołączył: 21 Wrz 2010
Posty: 935
Przeczytał: 0 tematów
Ostrzeżeń: 0/5 Skąd: England
|
Wysł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
|
|