Thanks Alexey.
I got it in a different method (easier one);
I transformed the date/time value of the customField into a Calendar Object and I used the method getTimeZone from that object like this:
Calendar calendarOfDateTimeCustomField = new GregorianCalendar(Integer.valueOf(year),Integer.valueOf(month)-1,Integer.valueOf(day),Integer.valueOf(hour),Integer.valueOf(minute),Integer.valueOf(second));
log.debug("currentServer TimeZone: " + calendarOfDateTimeCustomField.getTimeZone().getRawOffset());
I would not say this method is easier, but, if that works for you - it's fine) Please note that your code should be well commented to explain what are you doing if you plan to support it somehow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Alexey for the feedback, well noted, however, I didn't comment it here because I'm just explaining the method that i used instead of getting the timezone of the server (just to inform you that I didn't have the chance to try the method in the link above and get back to you with the result).
Thanks,
Rosy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.