Fossil SCM
Only show the "Original Date" if its display time is different from the "Date". Ignore differences in milliseconds.
Commit
022a74a93fa739aaba4ab5b2a36f3a944f5f3b33
Parent
2a02aa49e1bc672…
1 file changed
+1
-1
+1
-1
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -388,11 +388,11 @@ | ||
| 388 | 388 | @ (Record ID: %d(rid)) |
| 389 | 389 | } |
| 390 | 390 | @ </td></tr> |
| 391 | 391 | @ <tr><th>Date:</th><td> |
| 392 | 392 | hyperlink_to_date(zDate, "</td></tr>"); |
| 393 | - if( zOrigDate ){ | |
| 393 | + if( zOrigDate && fossil_strcmp(zDate, zOrigDate)!=0 ){ | |
| 394 | 394 | @ <tr><th>Original Date:</th><td> |
| 395 | 395 | hyperlink_to_date(zOrigDate, "</td></tr>"); |
| 396 | 396 | } |
| 397 | 397 | if( zEUser ){ |
| 398 | 398 | @ <tr><th>Edited User:</th><td> |
| 399 | 399 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -388,11 +388,11 @@ | |
| 388 | @ (Record ID: %d(rid)) |
| 389 | } |
| 390 | @ </td></tr> |
| 391 | @ <tr><th>Date:</th><td> |
| 392 | hyperlink_to_date(zDate, "</td></tr>"); |
| 393 | if( zOrigDate ){ |
| 394 | @ <tr><th>Original Date:</th><td> |
| 395 | hyperlink_to_date(zOrigDate, "</td></tr>"); |
| 396 | } |
| 397 | if( zEUser ){ |
| 398 | @ <tr><th>Edited User:</th><td> |
| 399 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -388,11 +388,11 @@ | |
| 388 | @ (Record ID: %d(rid)) |
| 389 | } |
| 390 | @ </td></tr> |
| 391 | @ <tr><th>Date:</th><td> |
| 392 | hyperlink_to_date(zDate, "</td></tr>"); |
| 393 | if( zOrigDate && fossil_strcmp(zDate, zOrigDate)!=0 ){ |
| 394 | @ <tr><th>Original Date:</th><td> |
| 395 | hyperlink_to_date(zOrigDate, "</td></tr>"); |
| 396 | } |
| 397 | if( zEUser ){ |
| 398 | @ <tr><th>Edited User:</th><td> |
| 399 |