CDash
CDash copied to clipboard
Use DateTime objects for timestamp manipulation
CDash currently stores and manipulates timestamps in several different ways. The most common way dates are manipulated is through PHP's procedural date() family of functions. Timestamps are often passed around as strings, or as integers representing the unix epoch. It would be better to use PHP's DateTime class for all internal operations, only converting to a string representation of a timestamp just before sending it to the client when necessary.