15 years ago
DayLight Savings Time Offset
Hello,
I was wondering if anyone has come across something like this. I am working with a date timestamp in the following format:
<_1:FirstPossibleTime>2011-04-18T08:00:00.0Z</_1:FirstPossibleTime>
<_1:LastPossibleTime>2011-04-28T08:00:00.0Z</_1:LastPossibleTime>
My issue is having the Daylight Savings time "T08:00.00.0Z" be automatically updated according to the system time clock. I have attempted to use the Z zulu reference but that only provides the following output: T-0500Z which is a negative value and not displaying the way I want it to be in the format of T08:00:00.0Z. Any suggestions on adjusting this value?
This is the code I've been using to reach these values.
def sdf = new java.text.SimpleDateFormat("yyyy-MM-dd'T'Z:00 Z")
return sdf.format( new Date())
Any suggestions would be greatly appreciated.
I was wondering if anyone has come across something like this. I am working with a date timestamp in the following format:
<_1:FirstPossibleTime>2011-04-18T08:00:00.0Z</_1:FirstPossibleTime>
<_1:LastPossibleTime>2011-04-28T08:00:00.0Z</_1:LastPossibleTime>
My issue is having the Daylight Savings time "T08:00.00.0Z" be automatically updated according to the system time clock. I have attempted to use the Z zulu reference but that only provides the following output: T-0500Z which is a negative value and not displaying the way I want it to be in the format of T08:00:00.0Z. Any suggestions on adjusting this value?
This is the code I've been using to reach these values.
def sdf = new java.text.SimpleDateFormat("yyyy-MM-dd'T'Z:00 Z")
return sdf.format( new Date())
Any suggestions would be greatly appreciated.