Resetting The BlogDogIt Clock

Contributed by: masodo on Saturday, May 18 2013 @ 10:32 am UTC

Last modified on

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.)

[tag:sitenews tip computing]

<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[*1]

Comment (0)

BlogDogIt - Resetting The BlogDogIt Clock
http://blogdogit.com/article.php?story=201305181332213

[*1] http://www.quackit.com/javascript/tutorial/javascript_date_and_time.cfm