Fossil SCM

Respect `"timeline-utc"` setting when a ticket change artifact is displayed on the <tt>/info</tt> page. This makes it consistent with other places and fixes a hyperlink to the corresponding item of the <tt>/timeline</tt>.

george 2022-11-05 22:10 trunk
Commit 0028a3ca6af9885683ada277ef72ccfae754c3fac6f1f0d6e1c079c0d9b19a0d
1 file changed +1 -1
+1 -1
--- src/info.c
+++ src/info.c
@@ -2754,11 +2754,11 @@
27542754
style_submenu_element("Shun", "%R/shun?shun=%s#addshun", zUuid);
27552755
}
27562756
}
27572757
pTktChng = manifest_get(rid, CFTYPE_TICKET, 0);
27582758
if( pTktChng==0 ) fossil_redirect_home();
2759
- zDate = db_text(0, "SELECT datetime(%.12f)", pTktChng->rDate);
2759
+ zDate = db_text(0, "SELECT datetime(%.12f,toLocal())", pTktChng->rDate);
27602760
sqlite3_snprintf(sizeof(zTktName), zTktName, "%s", pTktChng->zTicketUuid);
27612761
if( g.perm.ModTkt && (zModAction = P("modaction"))!=0 ){
27622762
if( strcmp(zModAction,"delete")==0 ){
27632763
moderation_disapprove(rid);
27642764
/*
27652765
--- src/info.c
+++ src/info.c
@@ -2754,11 +2754,11 @@
2754 style_submenu_element("Shun", "%R/shun?shun=%s#addshun", zUuid);
2755 }
2756 }
2757 pTktChng = manifest_get(rid, CFTYPE_TICKET, 0);
2758 if( pTktChng==0 ) fossil_redirect_home();
2759 zDate = db_text(0, "SELECT datetime(%.12f)", pTktChng->rDate);
2760 sqlite3_snprintf(sizeof(zTktName), zTktName, "%s", pTktChng->zTicketUuid);
2761 if( g.perm.ModTkt && (zModAction = P("modaction"))!=0 ){
2762 if( strcmp(zModAction,"delete")==0 ){
2763 moderation_disapprove(rid);
2764 /*
2765
--- src/info.c
+++ src/info.c
@@ -2754,11 +2754,11 @@
2754 style_submenu_element("Shun", "%R/shun?shun=%s#addshun", zUuid);
2755 }
2756 }
2757 pTktChng = manifest_get(rid, CFTYPE_TICKET, 0);
2758 if( pTktChng==0 ) fossil_redirect_home();
2759 zDate = db_text(0, "SELECT datetime(%.12f,toLocal())", pTktChng->rDate);
2760 sqlite3_snprintf(sizeof(zTktName), zTktName, "%s", pTktChng->zTicketUuid);
2761 if( g.perm.ModTkt && (zModAction = P("modaction"))!=0 ){
2762 if( strcmp(zModAction,"delete")==0 ){
2763 moderation_disapprove(rid);
2764 /*
2765

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button