Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trycf/78ca24229a69a3e8c1b67e292f31212b to your computer and use it in GitHub Desktop.
Save trycf/78ca24229a69a3e8c1b67e292f31212b to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
writedump( server.lucee.version )
dump("parseing against explicit UTC");
dump(label:"2024-04-11T15:28:37 == UTC", var:ParseDateTime(date:'2024-04-11T15:28:37',timezone:"UTC") ); // local TZ
dump(label:"2024-04-11T15:28:37.9663866 == UTC", var:ParseDateTime(date:'2024-04-11T15:28:37.9663866',timezone:"UTC") ); // local TZ
dump(label:"2024-04-11T15:28:37.9663866Z == UTC", var:ParseDateTime(date:'2024-04-11T15:28:37.9663866Z',timezone:"UTC") ); // UTC TZ (Z=Zulu Time)
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment