Skip to content
Snippets Groups Projects
Verified Commit fe493722 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

Merge branch 'f-timezone' of gitlab.indiscale.com:caosdb/src/caosdb-server into f-timezone

parents 668bc041 f444b154
No related branches found
No related tags found
1 merge request!69BUG: setup timezone in deploy
Pipeline #29062 passed
......@@ -141,6 +141,7 @@ public class UTCTimeZoneShift extends TimeZone {
public static String getISO8601Offset(TimeZone timezone, long date) {
int divisor = 1000 * 60 * 60;
int offset = timezone.getOffset(date);
// convert the ms to the ISO format
int sign = Integer.signum(offset);
int h = Integer.divideUnsigned(sign * offset, divisor);
int m = Integer.remainderUnsigned(sign * offset, divisor);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment