Skip to content

Commit

Permalink
fix node datatime format.
Browse files Browse the repository at this point in the history
  • Loading branch information
deepgully committed Feb 7, 2019
1 parent 4e68601 commit 0a31876
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion zilpool/web/main.py
Expand Up @@ -37,7 +37,8 @@
def init_web_handlers(app, config):
root_path = config["api_server"]["website"].get("path", "/")

aiohttp_jinja2.setup(app, loader=jinja2.FileSystemLoader(TEMPLATE_DIR))
jinja2_env = aiohttp_jinja2.setup(app, loader=jinja2.FileSystemLoader(TEMPLATE_DIR))
jinja2_env.globals["utils"] = utils

# add handles
app.router.add_static(f"{root_path}static", STATIC_DIR)
Expand Down
2 changes: 1 addition & 1 deletion zilpool/web/template/node.jinja2
Expand Up @@ -60,7 +60,7 @@
<tr>
<td>{{ work.block_num }}</td>
<td>{{ work.finished }}</td>
<td class="utc_time">{{ work.start_time }}</td>
<td class="utc_time">{{ utils.iso_format(work.start_time) }}</td>
<td class="fixed-font">
{% if work.miner_wallet %}
<a href="/miner/{{ work.miner_wallet }}">{{ work.miner_wallet and (work.miner_wallet[:8] + "...") }}</a>
Expand Down

0 comments on commit 0a31876

Please sign in to comment.