From 7224a3ccb6cc7ad53797c148c69e10d2a3be8d92 Mon Sep 17 00:00:00 2001 From: fuzzykitten Date: Fri, 11 Apr 2025 13:45:25 -0400 Subject: [PATCH] updated timestamp to make it prettier --- opt/post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opt/post.php b/opt/post.php index 9614fd9..f42dc82 100644 --- a/opt/post.php +++ b/opt/post.php @@ -462,7 +462,7 @@ function make_edit($db, $sub, $post_id, $ip, $settings) return $post_id; } -// Make a rough timestamp, like Q1/2025 +// Make a timestamp, precision is set in the config file function make_timestamp($settings){ $month = date("F"); @@ -471,7 +471,7 @@ function make_timestamp($settings){ if ( $settings['precision_timestamps'] == 'middle' ) { $timestamp = $month . '/' . $year; } elseif ( $settings['precision_timestamps'] == 'high' ) { - $timestamp = date("y-m-d"); + $timestamp = date("Y-m-d"); } elseif ( $settings['precision_timestamps'] == 'insane' ) { $timestamp = date("Y-m-d H:i:s"); } else {