Hi I'm having an issue with getting the non-localized time of a DateTime's time value. Here's some of the execute anonymous I'm having trouble with.
DateTime aDate = DateTime.newInstance(System.now().date().addDays(5), System.now().time()); System.debug(aDate); String strVal = String.valueOf(aDate); System.debug(strVal);
So this prints out the following:
It first shows 9:57 in UTC and adjusted for daylight savings time which is nice. And then when I convert it, it shows it converted back to 9:57 local time which is awesome. But... it converts it without the daylight savings adjustment. So it shows me local time (good) but it also adjusts for today's daylight savings time status.
Basically I can't access the adjusted version of the value or even know that it was changed +/- an hour because it always changes it back before returning it.