updated timestamp to make it prettier
parent
be21c74d06
commit
7224a3ccb6
|
@ -462,7 +462,7 @@ function make_edit($db, $sub, $post_id, $ip, $settings)
|
||||||
return $post_id;
|
return $post_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make a rough timestamp, like Q1/2025
|
// Make a timestamp, precision is set in the config file
|
||||||
function make_timestamp($settings){
|
function make_timestamp($settings){
|
||||||
|
|
||||||
$month = date("F");
|
$month = date("F");
|
||||||
|
@ -471,7 +471,7 @@ function make_timestamp($settings){
|
||||||
if ( $settings['precision_timestamps'] == 'middle' ) {
|
if ( $settings['precision_timestamps'] == 'middle' ) {
|
||||||
$timestamp = $month . '/' . $year;
|
$timestamp = $month . '/' . $year;
|
||||||
} elseif ( $settings['precision_timestamps'] == 'high' ) {
|
} elseif ( $settings['precision_timestamps'] == 'high' ) {
|
||||||
$timestamp = date("y-m-d");
|
$timestamp = date("Y-m-d");
|
||||||
} elseif ( $settings['precision_timestamps'] == 'insane' ) {
|
} elseif ( $settings['precision_timestamps'] == 'insane' ) {
|
||||||
$timestamp = date("Y-m-d H:i:s");
|
$timestamp = date("Y-m-d H:i:s");
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue