1.0.1 • Published 6 years ago

utc2local v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

utc2local.js

utc2local.js is a jQuery plugin that converts UTC(+00:00) time to the user's browser local time.

Installation

NPM

npm i utc2local

Usage

<p><span class="datetime">2013-01-27 10:34:13</span></p>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="utc2local.js"></script>
<script type="text/javascript">
  $(document).ready(function(){
    $('.datetime').utc2local();
  });
</script>