Greetings,
I'm struggling with converting and formatting date/time with the get-date cmdlet ...
According to https://technet.microsoft.com/en-us/library/ee692801.aspx
get-date -format "u"
should return UTC in the format "yyyy-MM-dd hh:mm:ssZ" with the appending Z to denote "Zulu" or UTC time, but on my system (Windows 8.1/64 bit, Powershell 4.0) it always returns the local time.
Example: It is 20:53 local time (GMT+1, Germany) for me now, so that is 19:53 UTC.
get-date -format "U" correctly returns
Freitag, 6. Februar 2015 19:53:00
but get-date -format "u" returns
2015-02-06 20:53:00Z
whereas it *should* really return 2015-02-06 19:53:00Z
Am I right, and is this a bug in get-date, or am I misunderstanding something?
Thanks for any comments
Andreas