Skip to content

Commit

Permalink
Adds default timezone provider
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham1g5 committed Oct 5, 2024
1 parent d0374b2 commit 1c155ae
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package org.javarosa.core.model.utils;

import java.util.Calendar;
import java.util.TimeZone;

public class DefaultTimeZoneProvider extends TimezoneProvider {
@Override
public int getTimezoneOffsetMillis() {
return Calendar.getInstance().getTimeZone().getRawOffset();
}

@Override
public TimeZone getTimezone() {
return Calendar.getInstance().getTimeZone();
}
}

0 comments on commit 1c155ae

Please sign in to comment.