1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0//EN">
6 <style type=
"text/css">
9 font-family: verdana
, sans-serif
;
29 text-decoration:underline
;
34 text-decoration: none
;
47 border-bottom-width:1px;
48 border-bottom-style:dotted
;
64 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
67 <big><tt>Global.Date.prototype.toLocalTime
()
</tt></big><br>
73 set the date/time to local time by adding
74 the timezone offset
<br><br>
88 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
90 <td>Sourcecode in /root/helma-
1.6.1/modules/core/Date.js:
91 <pre><font color=
"#aaaaaa">69:
</font> Date.prototype.toLocalTime = function() {
92 <font color=
"#aaaaaa">70:
</font> this.setMinutes(this.getMinutes() - this.getTimezoneOffset());
93 <font color=
"#aaaaaa">71:
</font> }