Compare commits

...

1 commit

Author SHA1 Message Date
75a15cc8c1 fix: timezone on contact page 2024-05-10 09:17:31 +02:00
2 changed files with 5 additions and 2 deletions

View file

@ -2,3 +2,6 @@
base_url = "https://api.vlw.one/" base_url = "https://api.vlw.one/"
api_key = "" api_key = ""
verify_peer = 0 verify_peer = 0
[time]
date_time_zone = "Europe/Stockholm"

View file

@ -15,7 +15,7 @@
<style><?= VV::css("pages/contact") ?></style> <style><?= VV::css("pages/contact") ?></style>
<section> <section>
<h1>Let's chat</h1> <h1>Let's chat</h1>
<p>The best way to get in touch is by email, or with the form on this page. I will try to reply as quickly as possible, probably within a few hours. The time is <i><?= date("h:i a") ?></i> in Sweden right now.</p> <p>The best way to get in touch is by email, or with the form on this page. I will try to reply as quickly as possible, probably within a few hours. The time is <i><?= (new DateTime("now", new DateTimeZone($_ENV["time"]["date_time_zone"])))->format("h:i a") ?></i> in Sweden right now.</p>
</section> </section>
<section class="social"> <section class="social">
<a href="mailto:victor@vlw.se"><social> <a href="mailto:victor@vlw.se"><social>