Force your browser to reload the CSS file (2)

Defining the version number of a sytel.css file with UNIX time is not very user friendly, so here comes a code;

function my_update_styles( $styles ) {
    $mtime = filemtime( get_stylesheet_directory() . '/style.css' );
    $styles->default_version = date("Y-m-d-D-H:i:s", $mtime);
}
add_action( 'wp_default_styles', 'my_update_styles' );

The sad part is that with Chrome DevTools the version number that is too long is not fully displayed unless mouse overed.