aboutsummaryrefslogblamecommitdiff
path: root/ui-shared.c.diff
blob: 64f4b30b1eeea3155902731072ee4bed5d314d08 (plain) (tree)


























                                                                                        
--- ui-shared.c.orig	2020-01-29 06:52:02.419984224 +0100
+++ ui-shared.c	2020-02-01 10:28:14.133315592 +0100
@@ -688,13 +688,21 @@
 	if (secs < 0)
 		secs = 0;
 
-	if (secs > max_relative && max_relative >= 0) {
+	// Always full date for me
+	if (secs > max_relative && max_relative >= 0 || 1) {
 		html("<span title='");
 		html_attr(show_date(t, tz, cgit_date_mode(DATE_ISO8601)));
 		html("'>");
-		html_txt(show_date(t, tz, cgit_date_mode(DATE_SHORT)));
+		// html_txt(show_date(t, tz, cgit_date_mode(DATE_ISO8601_STRICT)));
+		char * datetext = show_date(t, tz, cgit_date_mode(DATE_ISO8601_STRICT));
+		int datetext_len = strlen(datetext);
+		//datetext[datetext_len - 6] = 0;
+		datetext[datetext_len - 9] = 0;
+		datetext[10] = ' ';
+		html_txt(datetext);
 		html("</span>");
-		return;
+		html("&nbsp;&nbsp;");
+		//return;
 	}
 
 	if (secs < TM_HOUR * 2) {
in each repos: see "about"-tab (if existing) for more details / README.
mailto contact at omeckman dot net
all timestamps in UTC (German winter time: UTC+01:00, summer time: UTC+02:00)
dark theme is a modded version of: https://gist.github.com/Yoplitein/f4b671a2ec70c9e743fa