Fossil SCM

fixed /json/timeline/branch timestamp flag, which was in string format rather than unix epoch.

stephan 2012-03-21 20:55 trunk
Commit 9b42f2e9765a9e02cc96219e3c64949c0ee2988c
1 file changed +1 -1
--- src/json_timeline.c
+++ src/json_timeline.c
@@ -360,11 +360,11 @@
360360
json_timeline_temp_table();
361361
blob_append(&sql,
362362
"SELECT"
363363
" blob.rid AS rid,"
364364
" uuid AS uuid,"
365
- " datetime(event.mtime,'utc') as timestamp,"
365
+ " CAST(strftime('%s',event.mtime) AS INTEGER) as timestamp,"
366366
" coalesce(ecomment, comment) as comment,"
367367
" coalesce(euser, user) as user,"
368368
" blob.rid IN leaf as isLeaf,"
369369
" bgcolor as bgColor"
370370
" FROM event JOIN blob"
371371
--- src/json_timeline.c
+++ src/json_timeline.c
@@ -360,11 +360,11 @@
360 json_timeline_temp_table();
361 blob_append(&sql,
362 "SELECT"
363 " blob.rid AS rid,"
364 " uuid AS uuid,"
365 " datetime(event.mtime,'utc') as timestamp,"
366 " coalesce(ecomment, comment) as comment,"
367 " coalesce(euser, user) as user,"
368 " blob.rid IN leaf as isLeaf,"
369 " bgcolor as bgColor"
370 " FROM event JOIN blob"
371
--- src/json_timeline.c
+++ src/json_timeline.c
@@ -360,11 +360,11 @@
360 json_timeline_temp_table();
361 blob_append(&sql,
362 "SELECT"
363 " blob.rid AS rid,"
364 " uuid AS uuid,"
365 " CAST(strftime('%s',event.mtime) AS INTEGER) as timestamp,"
366 " coalesce(ecomment, comment) as comment,"
367 " coalesce(euser, user) as user,"
368 " blob.rid IN leaf as isLeaf,"
369 " bgcolor as bgColor"
370 " FROM event JOIN blob"
371

Keyboard Shortcuts

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