0

I was using MySQL with phpMyAdmin to manage a small database and system that my company was using to store the time a employee starts and finishes his shift.

If say employee works 8 hours a day but starts at "08:00" and finishes at "15:00", for example, it stores "-01:00", if he finishes at "17:00", it would store "01:00".

That's not the best way to mess with time, I get it, but for the moment we have to deal with this...

It's all doing fine, except I decided to open the MySQL database with SQL Manager 2010 instead of phpMyAdmin. This editor doesn't let a TIME be stored as negative as in phpMyAdmin, and it messed up the entire table just by opening it...

Is there a way to enable negative time values in MySQL?

Carlos Yasuda
  • 121
  • 12

0 Answers0