Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

method to set custom timezone, if requested

  • Loading branch information...
commit cb59413d053425f1d66998389c60ea34215574d4 1 parent 2e7fe85
@matejcik matejcik authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 core/src/se/krka/kahlua/stdlib/OsLib.java
View
4 core/src/se/krka/kahlua/stdlib/OsLib.java
@@ -73,6 +73,10 @@ public static void register(Platform platform, KahluaTable environment) {
//private static final String ISDST = "isdst";
private static TimeZone tzone = TimeZone.getDefault();
+
+ public static void setDefaultTimeZone (TimeZone tz) {
+ tzone = tz;
+ }
public static final int TIME_DIVIDEND = 1000; // number to divide by for converting from milliseconds.
public static final double TIME_DIVIDEND_INVERTED = 1.0 / TIME_DIVIDEND; // number to divide by for converting from milliseconds.
Please sign in to comment.
Something went wrong with that request. Please try again.