CDash icon indicating copy to clipboard operation
CDash copied to clipboard

Use DateTime objects for timestamp manipulation

Open williamjallen opened this issue 2 years ago • 0 comments

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.

williamjallen avatar May 28 '23 13:05 williamjallen