Skip to content

Commit

Permalink
gmtime fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyclenerd committed Feb 8, 2024
1 parent 9120c71 commit 52984de
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build/site.pl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

my $db_file = 'gce.db';

my $gmttime = gmtime();
my $gmtime = gmtime();
my $timestamp = time();

# Exports
Expand All @@ -78,7 +78,7 @@
INCLUDE_PATH => './src',
PRE_PROCESS => 'config.tt2',
VARIABLES => {
'gmttime' => $gmttime,
'gmtime' => $gmtime,
'timestamp' => $timestamp,
'gitHubServerUrl' => $ENV{'GITHUB_SERVER_URL'} || '',
'gitHubRepository' => $ENV{'GITHUB_REPOSITORY'} || '',
Expand Down
2 changes: 1 addition & 1 deletion build/src/footer.tt2
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
and used according to terms described in the <a href="https://creativecommons.org/licenses/by/4.0/">Creative Commons 4.0 Attribution License</a>.
</p>
<p class="text-muted small">
Last Update: <a href=[% IF gitHubRunId %]"[% gitHubServerUrl %]/[% gitHubRepository %]/actions/runs/[% gitHubRunId %]"[% ELSE %]"#"[% END %]>[% gmttime %]</a> (GMT)
Last Update: <a href=[% IF gitHubRunId %]"[% gitHubServerUrl %]/[% gitHubRepository %]/actions/runs/[% gitHubRunId %]"[% ELSE %]"#"[% END %]>[% gmtime %]</a> (GMT)
·
<a href="/imprint.html">Imprint</a>
</p>
Expand Down
2 changes: 1 addition & 1 deletion build/src/grid.tt2
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Use the arrow keys (<kbd>←</kbd> <kbd>↑</kbd> <kbd>→</kbd> <kbd>↓</kbd>)
Data and costs shown are not guaranteed to be accurate or current.
Please <a href="[% site.github.issues %]">report issues</a> you see.
</p>
<p>Last Update: <a href=[% IF gitHubRunId %]"[% gitHubServerUrl %]/[% gitHubRepository %]/actions/runs/[% gitHubRunId %]"[% ELSE %]"#"[% END %]>[% gmttime %]</a> (GMT)</p>
<p>Last Update: <a href=[% IF gitHubRunId %]"[% gitHubServerUrl %]/[% gitHubRepository %]/actions/runs/[% gitHubRunId %]"[% ELSE %]"#"[% END %]>[% gmtime %]</a> (GMT)</p>
</div> <!-- // modal-body -->
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
Expand Down
2 changes: 1 addition & 1 deletion build/src/map.tt2
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ body {

<div id="map" style="width: 100%; height: 100%">
<h1>Google Cloud Platform Region Map</h1>
<p>Last Update: <a href=[% IF gitHubRunId %]"[% gitHubServerUrl %]/[% gitHubRepository %]/actions/runs/[% gitHubRunId %]"[% ELSE %]"#"[% END %]>[% gmttime %]</a> (GMT)</p>
<p>Last Update: <a href=[% IF gitHubRunId %]"[% gitHubServerUrl %]/[% gitHubRepository %]/actions/runs/[% gitHubRunId %]"[% ELSE %]"#"[% END %]>[% gmtime %]</a> (GMT)</p>
</div>

<script>
Expand Down

0 comments on commit 52984de

Please sign in to comment.