summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-12-14 23:39:14 +0000
committerRoger Dingledine <arma@torproject.org>2006-12-14 23:39:14 +0000
commitc44dd3870e4fa46ad983632b873bcf7e4f973ff8 (patch)
tree26ca511a3765ec978e297077a3e82dac93bba1be /src/or/config.c
parent30e4f4f6ce17dfe8e0a44a45c0fecda689ece475 (diff)
downloadtor-c44dd3870e4fa46ad983632b873bcf7e4f973ff8.tar.gz
tor-c44dd3870e4fa46ad983632b873bcf7e4f973ff8.zip
clarify our use of local time vs GMT
svn:r9109
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c
index cc78bcb008..2afabe4800 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -3974,11 +3974,12 @@ or_state_save(time_t now)
tor_free(global_state->TorVersion);
global_state->TorVersion = tor_strdup("Tor " VERSION);
state = config_dump(&state_format, global_state, 1);
- len = strlen(state)+128;
+ len = strlen(state)+256;
contents = tor_malloc(len);
format_local_iso_time(tbuf, time(NULL));
tor_snprintf(contents, len,
- "# Tor state file last generated on %s\n"
+ "# Tor state file last generated on %s local time\n"
+ "# Other times below are in GMT\n"
"# You *do not* need to edit this file.\n\n%s",
tbuf, state);
tor_free(state);