I'm working on a module which adds a new node type.
This new node type has a "closing_date" field which is in unix date format.
I need to show informations about the remaining time before the closing date calcolated from current time.
Drupal support the configuration of timezones.
What do I need to do to correctly use dates with timezones??
example:
closing date is 12/12/2006 15:00 GMT
I've set GMT as my timezone on my drupal account page
In my timezone is 12/12/2006 13:00
the module show "2 hours remaining"
I was using event module version 1.122.2.23 2005/10/04 and it had event's Start and End date and time filleds to fill. But now when i upgarded it to v 1.183 2005/12/13 , there is no start and end date filled.
I really hate the way that book.module generates the "printer-friendly" link without checking whether or not the current page is actually of the "book page" type. Instead it seems that the only check is:
if ($type == 'node' && isset($node->parent)) {
which is certainly not an ideal way of doing things... if a module also defines a "parent" attribute to the node, then it will get the printer friendly links no matter what. I have to hack the book.module every time I upgrade.
Just a quick one to mention I have uploaded a new project to the contribtions folder called FLEXISEARCH.MODULE which is essentially an add-on module for flexinode that offers an advanced search page for content types.
brief description
The flexisearch.module allows site admins to setup a custom flexinode content search page that permits users, with permission, to search through specific content fields and content types. A simple settings page offers complete control on which content types and which content type fields appear on the flexisearch page.