Reply to comment

amf

Hey Andrew, your solution looks like genius, if only it worked for AMF! I'm using Zend AMF with Flex and I'm having similar issues.

I have my dates stored in mysql as datetime values. I use php to select records and convert the timestamps to unix time with the unix_timestamp() function in the sql query.

I send the unix date (* 1000 - flex does these in milliseconds instead of seconds) back to flex as a property of a value object and then I use your AMFDateConverter to alter the Number to a Date class. This allows me to render my dates in my datagrid but I'm stumped then as to how I send the dates back to the server when they get updated by users. I've spent over a week searching and asking questions on forums to no avail. If you have any idea how I can achieve this pleeeeeaaaaasssssee help me out, think of it as your good deed for the day, I'll pay it forward

;o)

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options