You are here

Blogs

Date ordinals: An ugly solution to an ugly problem

Submitted by cafuego on 14 August, 2012 - 18:36

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.

Sponsoring BarCamp Melbourne

Submitted by donna on 18 July, 2012 - 11:39

BarCamp Melbourne takes place in just 10 days. Creative Contingencies has thrown some coins in the hat to sponsor the event and help ensure it's free for attendees.  Would-be BarCampers do have to pay $10 up front to secure their place, as spots are limited. Too often, people sign up, but don't show up. A small financial commitment seems to work to reduce the number of no-shows. If attendees do turn up, they get a refund, or the option to donate their fee to a carbon offset scheme.

Pages

Subscribe to RSS - blogs