Blogs

Date ordinals: An ugly solution to an ugly problem

Root out the unilingualist oppression!

A friend bumped into what appears to be a very irritating problem yesterday with the PHP date_format() function, which is used by format_date() to show date and time strings on Drupal. This function uses the "S" format character, which returns the english ordinal number suffix for the current day of the month. E.g: "st" on the first day, "nd" on the second day, and so on. (And the date() function does too, coincidentally)

The problem is that when you're working in a non-english locale, the ordinal suffixes returned remain the english ones. Oops.

Drupal Groups Email Filtering

You've got way too much mail

Many Drupal users and developers are members of groups.drupal.org and will be getting email from the site when people post new messages and replies to threads. Of these people, many probably also like to organise their email in folders, for easy reference in the future.

A common way to do this is by creating email filter rules that look at email subject lines or other headers and perform an action based on what these headers contain.

SecureBoot Database

Since I can see which way the wind is blowing with SecureBoot, I thought it prudent to create a database much reminiscent of the Linux hardware compatibility lists of yesteryear.

After some pointing and clicking in Drupal, the site is ready, for "beta" values of ready. You can access it at http://secureboot.osda.asn.au/

If you have a moment, please sign up and add your hardware to the system.