Development
📖 Posts | 📎 Information Management, Data, Development, Software | 🔖 Databases, Dates, DBA, Debugging, Development, Software, Solutions Architecture, Standards, Timestamps
Rules for working with dates and times
Dates and times are incredibly complex. They can be different in different countries, languages. They are often inconsistent and have weird edge-cases. These are some basic rules I apply when working with dates and times.
Bug in WordPress 3.0 Custom Post Types
Well this one threw me! I was trying out the new custom post types in WordPress 3.0 RC1 and could not work out why mine wasn’t working even when I copied an example from the web and only changed a few things. It turns out that there is a limitation in the naming of post types – they cannot have a name longer than 20 characters! If you use more than 20 characters, the “Publish” button becomes “Submit for Review” and if you submit, you get the dreaded: Are you sure you want to do this?