Show time in future
This commit is contained in:
parent
60f4c1aad0
commit
bc57cae1e1
@ -38,7 +38,9 @@ end
|
|||||||
|
|
||||||
def render_time(ts)
|
def render_time(ts)
|
||||||
t = Time.unix(ts).in(Time::Location.load("Europe/Moscow"))
|
t = Time.unix(ts).in(Time::Location.load("Europe/Moscow"))
|
||||||
t.to_s("%H:%M:%S")
|
# It's future, baby
|
||||||
|
t += 200.years
|
||||||
|
t.to_s("%Y-%m-%d %H:%M:%S")
|
||||||
end
|
end
|
||||||
|
|
||||||
def render_map(world)
|
def render_map(world)
|
||||||
|
Loading…
Reference in New Issue
Block a user