World-Three-Technologies / Masxaro-Prototype

Other
8 stars 4 forks source link

Receipt time format #14

Closed yichaoyu closed 13 years ago

yichaoyu commented 13 years ago

I found that the receipt time format is "MM-DD-YY HH:MM:SS" and you used now() to get the time at the back-end. Can you modify that time format to "MM-DD-YY HH:MM AM(PM)" in the server when we front-ends are going to retrieve receipts from the database?

yaxing commented 13 years ago

Sure, since the database column is TIMESTAMP, format in db cannot be changed, I formatted the date selected from database.

yaxing commented 13 years ago

And now() is not used to get the time.

yichaoyu commented 13 years ago

ok. what is the date/time format when we deliver the receipt to the server now?

yaxing commented 13 years ago

You don't need to deliver the receipt time, but if necessary, the format is "MM-DD-YY HH:MM:SS"

yichaoyu commented 13 years ago

good, i'm closing the issue