Welcome to BlogDogIt Tuesday, July 17 2018 @ 07:45 AM EDT

Resetting The BlogDogIt Clock

  • Contributed by:
  • Views: 1,444
K+Club

For the record: I've updated the web site clock to log Eastern Standard Time instead of Mountain Standard Time (as it has been ever since the beginning of this site.)

Your System Time

 

For interested GeekLoggers:
I added the following code to my siteconfig.php file (after the "$_CONF['default_charset']" LINE:


$_CONF['timezone'] = 'US/Eastern';


Time displayed above using the Javascript shown below:
(which I assume is showing your system's time.)

<script type="text/javascript">
<!--
    var currentTime = new Date()
    var hours = currentTime.getHours()
    var minutes = currentTime.getMinutes()

    if (minutes < 10)
    minutes = "0" + minutes

    document.write("<b>" + hours + ":" + minutes + " " + "</b>")
//-->
</script>

 

Code Source: http://www.quackit.com/javascript/tutorial/javascript_date_and_time.cfm

Share
  • Facebook
  • Google Bookmarks
  • Digg
  • Twitter
  • Reddit