CCK date fields

I have been banging my head against a problem that has to do with passing FileMaker timestamp data to Drupal CCK date fields. Then, Andy alerted me to this post. So, it turns out that CCK date fields are stored in UTC format, which explains the -5 hrs time offset I was getting. Note this is not a Drupal config issue, ergo time wasted in wrong tree.

The solution was to convert my FileMaker timestamp to a UTC equivalent which presented a different problem. How does one make sure that the FileMaker file automatically recognize the user's timezone locale accounting for daylight savings?

I am not a big user of plugins but I must say that Scodigo's SmartPill PHP plugin is among my top 5 favs. Once again, SmartPill came to the rescue. With the simple PHP date('Z') function, I was able to get the UTC offset value in seconds (time units) and passed on to the proper UTC-ized field. I do love PHP and SmartPill!

Cheers,

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Smartpill is such a great

Smartpill is such a great plugin with so many good uses. I use it on a site I run for a local company and it has been a lifesaver.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><p><div> <br><img>
  • Lines and paragraphs break automatically.

More information about formatting options

Verification
This question is for testing whether you are a human visitor and to prevent automated spam submissions.