diff --git a/clock.js b/clock.js
index 875acf5..b58802c 100644
--- a/clock.js
+++ b/clock.js
@@ -46,3 +46,14 @@ function startTime(){
}
//document.getElementById('JStz').innerHTML = current_tz;
}
+
+function copy_timestamp() {
+ var copyText = document.getElementById("time_body").innerText;
+ var temp_element = document.createElement("textarea");
+ document.body.appendChild(temp_element)
+ temp_element.value = copyText;
+ temp_element.select();
+ temp_element.setSelectionRange(0,999);
+ document.execCommand("copy");
+ document.body.removeChild(temp_element);
+}
diff --git a/clock.php b/clock.php
index 6ae0eb7..2420058 100644
--- a/clock.php
+++ b/clock.php
@@ -45,7 +45,7 @@
" ".
date("D, M d, Y, H:i:s") .
- " GMT". date("O T") ."
".
"
GMT". date("O T") ."
\n\t\t"; if($_POST['originalTZ']){// if the user want display the browser detected timezone as well as the selected one. date_default_timezone_set($originalTZ); echo'