aboutsummaryrefslogtreecommitdiffstats
path: root/render
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2017-02-09 21:16:23 -0800
committerAdam Mathes <adam@trenchant.org>2017-02-09 21:16:23 -0800
commit0f6f31b4cdccee59361e7e857cdf3340629cb348 (patch)
tree32c20f3836604b570277917331f851f9884ef7e0 /render
parentb3ecf2504a732f71122dadee1266c054466a07a2 (diff)
downloadsnkt-0f6f31b4cdccee59361e7e857cdf3340629cb348.tar.gz
snkt-0f6f31b4cdccee59361e7e857cdf3340629cb348.tar.bz2
snkt-0f6f31b4cdccee59361e7e857cdf3340629cb348.zip
parse time in local timezon context
Diffstat (limited to 'render')
-rw-r--r--render/render.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/render/render.go b/render/render.go
index fa768ca..1606305 100644
--- a/render/render.go
+++ b/render/render.go
@@ -5,6 +5,7 @@ import (
"adammathes.com/snkt/config"
"io/ioutil"
"log"
+ "adammathes.com/snkt/vlog"
"os"
"path"
"path/filepath"
@@ -28,7 +29,7 @@ type Renderable interface {
func Write(a Renderable) {
if config.Config.Verbose {
- log.Printf("Writing to %s\n", a.Target())
+ vlog.Printf("Writing to %s\n", a.Target())
}
os.MkdirAll(path.Dir(a.Target()), 0755)
err := ioutil.WriteFile(a.Target(), a.Render(), 0755)