Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(408)

Unified Diff: src/pkg/time/zoneinfo_plan9.go

Issue 6892048: runtime: synthetic time
Patch Set: diff -r f7c125983d99 https://code.google.com/p/go Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/time/time.go ('k') | src/pkg/time/zoneinfo_read.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/time/zoneinfo_plan9.go
===================================================================
--- a/src/pkg/time/zoneinfo_plan9.go
+++ b/src/pkg/time/zoneinfo_plan9.go
@@ -96,7 +96,7 @@
// Fill in the cache with information about right now,
// since that will be the most common lookup.
- sec, _ := now()
+ sec, _ := fakeNow()
for i := range tx {
if tx[i].when <= sec && (i+1 == len(tx) || sec < tx[i+1].when) {
l.cacheStart = tx[i].when
« no previous file with comments | « src/pkg/time/time.go ('k') | src/pkg/time/zoneinfo_read.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b