I've posted the code at http://bennerweb.com/node/15
On Jun 4, 1:45 pm, Joshua Benner <[EMAIL PROTECTED]> wrote: > I'm working with CakePHP with an SQL Server backend to great success. > One of the hiccups I've encountered, however, is the way that SQL > Server outputs datetime values by default -- it's not parsable by > PHP's built-in date functions (such as strtotime()) in its default > form. > > I've written a small behavior with an afterFind function that detects > and converts SQL Server datetimes to standard datetime strings > according to the current locale. It's also easily extensible if I need > consistent conversion of other datatypes in the future. It has been > working nicely, but I wanted to ask for best practice purposes, and to > make sure I'm not using unnecessary code... > > Is this a valid and effective means to achieve the desired behavior? > Does anybody have a better method to suggest? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
