fossil import --git ignores the timezone field on timestamps. I have this in the fast import dump:
mark :4 author David Given <d...@cowlark.com> 1309983972 +0100 committer David Given <d...@cowlark.com> 1309983972 +0100 data 17 Initial checkin. ...but in the fossil repo it actually ends up being: { "type":"checkin", "uuid":"926edebbe40ee63b0323c2e545e984391d4fd6f4", "isLeaf":false, "timestamp":1309983972, "user":"d...@cowlark.com", "comment":"Initial checkin.\n", "tags":["trunk"] } Note that the value of timestamp matches the unadjusted value from the fast import dump. The code from import.c looks like: secSince1970 = 0; for(i=i+2; fossil_isdigit(zLine[i]); i++){ secSince1970 = secSince1970*10 + zLine[i] - '0'; } fossil_free(gg.zDate); gg.zDate = db_text(0, "SELECT datetime(%lld, 'unixepoch')", secSince1970); gg.zDate[10] = 'T'; It's probably easy enough to fix --- parse the following word, convert to an offset in seconds, and add. On export the emitted timezone is hard-coded to +0000, which should be fine given the time is stored in seconds since epoch. -- ┌─── dg@cowlark.com ───── http://www.cowlark.com ───── │ "There does not now, nor will there ever, exist a programming │ language in which it is the least bit hard to write bad programs." --- │ Flon's Axiom
signature.asc
Description: OpenPGP digital signature
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users