{"id":7962,"date":"2020-12-15T09:51:19","date_gmt":"2020-12-15T14:51:19","guid":{"rendered":"https:\/\/jdhitsolutions.com\/blog\/?p=7962"},"modified":"2020-12-15T09:54:45","modified_gmt":"2020-12-15T14:54:45","slug":"convert-to-local-time-with-powershell","status":"publish","type":"post","link":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7962\/convert-to-local-time-with-powershell\/","title":{"rendered":"Convert to Local Time with PowerShell"},"content":{"rendered":"\n<p>As some of you know, I host a monthly online Twitter chat on the first Friday of every month using the #PSTweetChat tag (although the January 2021 chat will be on 8 January.)  We get together and chat about all things PowerShell at 1:00PM Eastern Time. The challenge for the rest of the world is making sure they know what time that is for them. I've been on the other end of this as well. I need to attend an event that is 10:00AM Central Europe Standard Time. When is that for me? I spend my day in PowerShell, so there should be an easy way to answer that question.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">DateTime Shenanigans<\/h2>\n\n\n\n<p>And of course there is. The [DateTime] class has a method called ToLocalTime() which will convert a UTC time to your local time. In order to convert my 10:00AM CET event to my local time, I need to convert <em>that<\/em> time. to UTC and then to local time.<\/p>\n\n\n\n<p>The first part, and yes this could be done a couple of ways, is to create a date time object for 10:00AM CET. I can't just run Get-Date because any result will be relative to <em>my <\/em>time zone. Well, actually I can.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">\u00a0$datetime\u00a0=\u00a0Get-Date\u00a0\"12\/30\/2020\u00a010:00AM\"<\/code><\/pre>\n\n\n\n<p>What I need to do is adjust this value to match the CET time zone. For that, I need to know the time zone. No problem.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">$tzone\u00a0=\u00a0Get-TimeZone\u00a0-Id\u00a0\"Central\u00a0European\u00a0Standard\u00a0Time\"<\/code><\/pre>\n\n\n\n<p>I'll assume you will look at help and examples for this command. This result includes a property that reflects a timespan for the UTC offset. In other words, how far off from UTC it is. For CET it is 1:00:00. I can use the AddHours() method to adjust the datetime value.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">$remoteTime\u00a0=\u00a0$DateTime.AddHours(\u00a0-\u00a0($tzone.BaseUtcOffset.totalhours))<\/code><\/pre>\n\n\n\n<p>This is the UTC value which I can now convert to my local time.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">$remoteTime.ToLocalTime()<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/tolocaltime.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"223\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/tolocaltime-1024x223.png\" alt=\"\" class=\"wp-image-7963\" srcset=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/tolocaltime-1024x223.png 1024w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/tolocaltime-300x65.png 300w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/tolocaltime-768x167.png 768w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/tolocaltime-850x185.png 850w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/tolocaltime.png 1062w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>I am in Eastern time, so my UTC offset is -5 hours. CET is another hour beyond that for a total of 7 hours so 10:00AM CET is in fact 4:00AM for me. I think I may pass on this meeting.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ConvertTo-LocalTime<\/h2>\n\n\n\n<p>Now that I have the core mechanics worked out, I'll wrap it up in a PowerShell function.<\/p>\n\n\n\n<pre title=\"ConvertTo-LocalTime\" class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">Function\u00a0ConvertTo-LocalTime\u00a0{\n\u00a0\u00a0\u00a0\u00a0<em>&lt;#<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0.Synopsis<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0Convert\u00a0a\u00a0remote\u00a0time\u00a0to\u00a0local\u00a0time<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0.Description<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0You\u00a0can\u00a0use\u00a0this\u00a0command\u00a0to\u00a0convert\u00a0datetime\u00a0from\u00a0another\u00a0timezone\u00a0to\u00a0your\u00a0local\u00a0time.\u00a0You\u00a0should\u00a0be\u00a0able\u00a0to\u00a0enter\u00a0the\u00a0remote\u00a0time\u00a0using\u00a0your\u00a0local\u00a0time\u00a0and\u00a0date\u00a0format.<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0.Parameter\u00a0Time<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0Specify\u00a0the\u00a0date\u00a0and\u00a0time\u00a0from\u00a0the\u00a0other\u00a0time\u00a0zone.<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0.Parameter\u00a0TimeZone<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0Select\u00a0the\u00a0corresponding\u00a0time\u00a0zone.<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0.Example<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0PS\u00a0C:\\>\u00a0ConvertTo-LocalTime\u00a0\"2\/2\/2021\u00a02:00PM\"\u00a0-TimeZone\u00a0'Central\u00a0Europe\u00a0Standard\u00a0Time'<\/em>\n\n<em>\u00a0\u00a0\u00a0\u00a0Tuesday,\u00a0February\u00a02,\u00a02021\u00a08:00:00\u00a0AM<\/em>\n\n<em>\u00a0\u00a0\u00a0\u00a0Convert\u00a0a\u00a0Central\u00a0Europe\u00a0time\u00a0to\u00a0local\u00a0time,\u00a0which\u00a0in\u00a0this\u00a0example\u00a0is\u00a0Eastern\u00a0Standard\u00a0Time.<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0.Example<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0PS\u00a0C:\\>\u00a0ConvertTo-LocalTime\u00a0\"7\/2\/2021\u00a02:00PM\"\u00a0-TimeZone\u00a0'Central\u00a0Europe\u00a0Standard\u00a0Time'\u00a0-Verbose<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0VERBOSE:\u00a0Converting\u00a0Friday,\u00a0July\u00a02,\u00a02021\u00a02:00\u00a0PM\u00a0[Central\u00a0Europe\u00a0Standard\u00a0Time\u00a001:00:00\u00a0UTC]\u00a0to\u00a0local\u00a0time.<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0Friday,\u00a0July\u00a02,\u00a02021\u00a09:00:00\u00a0AM<\/em>\n\n<em>\u00a0\u00a0\u00a0\u00a0The\u00a0calculation\u00a0should\u00a0take\u00a0day\u00a0light\u00a0savings\u00a0time\u00a0into\u00a0account.\u00a0Verbose\u00a0output\u00a0indicates\u00a0the\u00a0time\u00a0zone\u00a0and\u00a0its\u00a0UTC\u00a0offset.<\/em>\n\n<em>\u00a0\u00a0\u00a0\u00a0.Notes<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0Learn\u00a0more\u00a0about\u00a0PowerShell:\u00a0http:\/\/jdhitsolutions.com\/blog\/essential-powershell-resources\/<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0.Inputs<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0None<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0.Link<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0Get-Date<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0.Link<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0Get-TimeZone<\/em>\n<em>\u00a0\u00a0\u00a0\u00a0#><\/em>\n\u00a0\u00a0\u00a0\u00a0[cmdletbinding()]\n\u00a0\u00a0\u00a0\u00a0[alias(\"ctlt\")]\n\u00a0\u00a0\u00a0\u00a0[Outputtype([System.Datetime])]\n\u00a0\u00a0\u00a0\u00a0Param(\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0[Parameter(<em>Position<\/em>\u00a0=\u00a00,\u00a0<em>Mandatory<\/em>,\u00a0<em>HelpMessage<\/em>\u00a0=\u00a0\"Specify\u00a0the\u00a0date\u00a0and\u00a0time\u00a0from\u00a0the\u00a0other\u00a0time\u00a0zone.\u00a0\")]\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0[ValidateNotNullorEmpty()]\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0[alias(\"dt\")]\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0[string]$Time,\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0[Parameter(<em>Position<\/em>\u00a0=\u00a01,\u00a0<em>Mandatory<\/em>,\u00a0<em>HelpMessage<\/em>\u00a0=\u00a0\"Select\u00a0the\u00a0corresponding\u00a0time\u00a0zone.\")]\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0[alias(\"tz\")]\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0[string]$TimeZone\n\u00a0\u00a0\u00a0\u00a0)\n\u00a0\u00a0\u00a0\u00a0<em>#parsing\u00a0date\u00a0from\u00a0a\u00a0string\u00a0to\u00a0accommodate\u00a0cultural\u00a0variations<\/em>\n\u00a0\u00a0\u00a0\u00a0$ParsedDateTime\u00a0=\u00a0Get-Date\u00a0$time\n\u00a0\u00a0\u00a0\u00a0$tzone\u00a0=\u00a0Get-TimeZone\u00a0-Id\u00a0$Timezone\n\u00a0\u00a0\u00a0\u00a0$datetime\u00a0=\u00a0\"{0:f}\"\u00a0-f\u00a0$parsedDateTime\n\n\u00a0\u00a0\u00a0\u00a0Write-Verbose\u00a0\"Converting\u00a0$datetime\u00a0[$($tzone.id)\u00a0$($tzone.BaseUTCOffSet)\u00a0UTC]\u00a0to\u00a0local\u00a0time.\"\n\n\u00a0\u00a0\u00a0\u00a0$ParsedDateTime.AddHours(-($tzone.BaseUtcOffset.totalhours)).ToLocalTime()\n}<\/code><\/pre>\n\n\n\n<p>The function requires you to specify the datetime and its associated timezone. If the testing that I've been able to do, you should be able to specify the date using your local date time format. That's why the Time parameter is a string and I'm calling Get-Date. I need to be sure that the parsed value is valid for your culture. The rest of the code is simply a more compact version of what I just demonstrated.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"99\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt-1024x99.png\" alt=\"convert to local time with PowerShell\" class=\"wp-image-7964\" srcset=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt-1024x99.png 1024w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt-300x29.png 300w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt-768x75.png 768w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt-1536x149.png 1536w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt-850x83.png 850w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt.png 1956w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Time Zone Completer<\/h2>\n\n\n\n<p>To make this even easier to use, I wanted to pre-populate possible time zone values. In other words, add auto-completion.  In the same file as the function I have this bit of PowerShell code to setup the argument completer.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">Register-ArgumentCompleter\u00a0-CommandName\u00a0ConvertTo-LocalTime\u00a0-ParameterName\u00a0TimeZone\u00a0-ScriptBlock\u00a0{\n\u00a0\u00a0\u00a0\u00a0param($commandName,\u00a0$parameterName,\u00a0$wordToComplete,\u00a0$commandAst,\u00a0$fakeBoundParameter)\n\n\u00a0\u00a0\u00a0\u00a0<em>#PowerShell\u00a0code\u00a0to\u00a0populate\u00a0$wordtoComplete<\/em>\n\u00a0\u00a0\u00a0\u00a0(Get-TimeZone\u00a0-ListAvailable\u00a0|\u00a0Sort-Object\u00a0-Property\u00a0ID).where({$_.id\u00a0-match\u00a0\"$wordToComplete\"})\u00a0|\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ForEach-Object\u00a0{\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<em>#\u00a0completion\u00a0text,listitem\u00a0text,result\u00a0type,Tooltip<\/em>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0[System.Management.Automation.CompletionResult]::new(\"'$($_.id)'\",\u00a0\"'$($_.id)'\",\u00a0'ParameterValue',\u00a0$_.BaseUtcOffset)\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}\n}<\/code><\/pre>\n\n\n\n<p>The code in the scriptblock is executed and is what provides the completion values. You need to run a command that will generate results and each result is added as a CompletionResult object. I'm showing the parameter values for the New() method as a comment.  <\/p>\n\n\n\n<p>You also have the option to use the $WordToComplete parameter as a type of wildcard. In my code, the argument complete is getting time zone ids where the name matches whatever I type. This means I can start typing:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">ConvertTo-LocalTime -Time \"12\/30\/20 10:00AM\" -TimeZone europe<\/code><\/pre>\n\n\n\n<p>And press Ctrl+Space to invoke PSReadline which shows me the possible values.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt-tab-complete.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"139\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt-tab-complete-1024x139.png\" alt=\"tab completion\" class=\"wp-image-7965\" srcset=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt-tab-complete-1024x139.png 1024w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt-tab-complete-300x41.png 300w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt-tab-complete-768x104.png 768w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt-tab-complete-1536x209.png 1536w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt-tab-complete-850x116.png 850w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt-tab-complete.png 1661w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>The 01:00:00 you see is the ToolTip value which is the BaseUTCOffset. This looks a little nicer in the PowerShell ISE.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ise-timezone.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"171\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ise-timezone-1024x171.png\" alt=\"ISE time zone tip\" class=\"wp-image-7966\" srcset=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ise-timezone-1024x171.png 1024w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ise-timezone-300x50.png 300w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ise-timezone-768x128.png 768w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ise-timezone-1536x256.png 1536w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ise-timezone-850x142.png 850w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ise-timezone.png 1576w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>By the way, if you type:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">ConvertTo-LocalTime -Time \"12\/30\/20 10:00AM\" -TimeZone <\/code><\/pre>\n\n\n\n<p>And then press Ctrl+Space, PowerShell will prompt you to display all 140 possible values. I'll let you try that out for yourself. <\/p>\n\n\n\n<p>Now I have a handy PowerShell tool which will tell me at a glance if I need to get early, or stay up late.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"156\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt-2-1024x156.png\" alt=\"Converting an Australian datetime\" class=\"wp-image-7967\" srcset=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt-2-1024x156.png 1024w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt-2-300x46.png 300w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt-2-768x117.png 768w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt-2-850x129.png 850w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/ctlt-2.png 1270w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>I hope you'll give this code a try and let me know what you think. I'm especially interested to hear how it works for those of use that have a non-North American culture. From my limited testing, I <em>think <\/em>you can enter a datetime using your local culture and everything should work as expected. But I would love confirmation.<\/p>\n\n\n\n<p>Learn and Enjoy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As some of you know, I host a monthly online Twitter chat on the first Friday of every month using the #PSTweetChat tag (although the January 2021 chat will be on 8 January.) We get together and chat about all things PowerShell at 1:00PM Eastern Time. The challenge for the rest of the world is&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"New on the blog: Convert to Local Time with #PowerShell","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,8],"tags":[643,534,642],"class_list":["post-7962","post","type-post","status-publish","format-standard","hentry","category-powershell","category-scripting","tag-argumentcompleter","tag-powershell","tag-timezone"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Convert to Local Time with PowerShell &#8226; The Lonely Administrator<\/title>\n<meta name=\"description\" content=\"Don&#039;t miss another meeting again that is scheduled in a far-off time zone. Use this PowerShell function to convert it to your local time.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jdhitsolutions.com\/blog\/powershell\/7962\/convert-to-local-time-with-powershell\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Convert to Local Time with PowerShell &#8226; The Lonely Administrator\" \/>\n<meta property=\"og:description\" content=\"Don&#039;t miss another meeting again that is scheduled in a far-off time zone. Use this PowerShell function to convert it to your local time.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jdhitsolutions.com\/blog\/powershell\/7962\/convert-to-local-time-with-powershell\/\" \/>\n<meta property=\"og:site_name\" content=\"The Lonely Administrator\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-15T14:51:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-15T14:54:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/tolocaltime-1024x223.png\" \/>\n<meta name=\"author\" content=\"Jeffery Hicks\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@JeffHicks\" \/>\n<meta name=\"twitter:site\" content=\"@JeffHicks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeffery Hicks\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7962\\\/convert-to-local-time-with-powershell\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7962\\\/convert-to-local-time-with-powershell\\\/\"},\"author\":{\"name\":\"Jeffery Hicks\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"headline\":\"Convert to Local Time with PowerShell\",\"datePublished\":\"2020-12-15T14:51:19+00:00\",\"dateModified\":\"2020-12-15T14:54:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7962\\\/convert-to-local-time-with-powershell\\\/\"},\"wordCount\":715,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"image\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7962\\\/convert-to-local-time-with-powershell\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/tolocaltime-1024x223.png\",\"keywords\":[\"ArgumentCompleter\",\"PowerShell\",\"Timezone\"],\"articleSection\":[\"PowerShell\",\"Scripting\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7962\\\/convert-to-local-time-with-powershell\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7962\\\/convert-to-local-time-with-powershell\\\/\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7962\\\/convert-to-local-time-with-powershell\\\/\",\"name\":\"Convert to Local Time with PowerShell &#8226; The Lonely Administrator\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7962\\\/convert-to-local-time-with-powershell\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7962\\\/convert-to-local-time-with-powershell\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/tolocaltime-1024x223.png\",\"datePublished\":\"2020-12-15T14:51:19+00:00\",\"dateModified\":\"2020-12-15T14:54:45+00:00\",\"description\":\"Don't miss another meeting again that is scheduled in a far-off time zone. Use this PowerShell function to convert it to your local time.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7962\\\/convert-to-local-time-with-powershell\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7962\\\/convert-to-local-time-with-powershell\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7962\\\/convert-to-local-time-with-powershell\\\/#primaryimage\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/tolocaltime.png\",\"contentUrl\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/tolocaltime.png\",\"width\":1062,\"height\":231},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7962\\\/convert-to-local-time-with-powershell\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"PowerShell\",\"item\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/category\\\/powershell\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Convert to Local Time with PowerShell\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/\",\"name\":\"The Lonely Administrator\",\"description\":\"Practical Advice for the Automating IT Pro\",\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\",\"name\":\"Jeffery Hicks\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"caption\":\"Jeffery Hicks\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Convert to Local Time with PowerShell &#8226; The Lonely Administrator","description":"Don't miss another meeting again that is scheduled in a far-off time zone. Use this PowerShell function to convert it to your local time.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7962\/convert-to-local-time-with-powershell\/","og_locale":"en_US","og_type":"article","og_title":"Convert to Local Time with PowerShell &#8226; The Lonely Administrator","og_description":"Don't miss another meeting again that is scheduled in a far-off time zone. Use this PowerShell function to convert it to your local time.","og_url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7962\/convert-to-local-time-with-powershell\/","og_site_name":"The Lonely Administrator","article_published_time":"2020-12-15T14:51:19+00:00","article_modified_time":"2020-12-15T14:54:45+00:00","og_image":[{"url":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/tolocaltime-1024x223.png","type":"","width":"","height":""}],"author":"Jeffery Hicks","twitter_card":"summary_large_image","twitter_creator":"@JeffHicks","twitter_site":"@JeffHicks","twitter_misc":{"Written by":"Jeffery Hicks","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7962\/convert-to-local-time-with-powershell\/#article","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7962\/convert-to-local-time-with-powershell\/"},"author":{"name":"Jeffery Hicks","@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"headline":"Convert to Local Time with PowerShell","datePublished":"2020-12-15T14:51:19+00:00","dateModified":"2020-12-15T14:54:45+00:00","mainEntityOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7962\/convert-to-local-time-with-powershell\/"},"wordCount":715,"commentCount":0,"publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"image":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7962\/convert-to-local-time-with-powershell\/#primaryimage"},"thumbnailUrl":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/tolocaltime-1024x223.png","keywords":["ArgumentCompleter","PowerShell","Timezone"],"articleSection":["PowerShell","Scripting"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/7962\/convert-to-local-time-with-powershell\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7962\/convert-to-local-time-with-powershell\/","url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7962\/convert-to-local-time-with-powershell\/","name":"Convert to Local Time with PowerShell &#8226; The Lonely Administrator","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7962\/convert-to-local-time-with-powershell\/#primaryimage"},"image":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7962\/convert-to-local-time-with-powershell\/#primaryimage"},"thumbnailUrl":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/tolocaltime-1024x223.png","datePublished":"2020-12-15T14:51:19+00:00","dateModified":"2020-12-15T14:54:45+00:00","description":"Don't miss another meeting again that is scheduled in a far-off time zone. Use this PowerShell function to convert it to your local time.","breadcrumb":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7962\/convert-to-local-time-with-powershell\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/7962\/convert-to-local-time-with-powershell\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7962\/convert-to-local-time-with-powershell\/#primaryimage","url":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/tolocaltime.png","contentUrl":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/tolocaltime.png","width":1062,"height":231},{"@type":"BreadcrumbList","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7962\/convert-to-local-time-with-powershell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"PowerShell","item":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},{"@type":"ListItem","position":2,"name":"Convert to Local Time with PowerShell"}]},{"@type":"WebSite","@id":"https:\/\/jdhitsolutions.com\/blog\/#website","url":"https:\/\/jdhitsolutions.com\/blog\/","name":"The Lonely Administrator","description":"Practical Advice for the Automating IT Pro","publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jdhitsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9","name":"Jeffery Hicks","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","url":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","caption":"Jeffery Hicks"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg"}}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":1055,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1055\/more-wmi-dates-win32product-installdate\/","url_meta":{"origin":7962,"position":0},"title":"More WMI Dates \u2013 Win32Product InstallDate","author":"Jeffery Hicks","date":"January 11, 2011","format":false,"excerpt":"I've written in the past about converting obtuse WMI datetime formats into more user friendly formats. The other day via Twitter I got a question about the InstallDate property that comes from the Win32_Product class. This property has a different format, than what I've written about previously. And while I\u2026","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":100,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/100\/more-with-service-uptime\/","url_meta":{"origin":7962,"position":1},"title":"More with Service Uptime","author":"Jeffery Hicks","date":"February 16, 2007","format":false,"excerpt":"I knew I wasn't totally satisfied with my recent attempt at listing service uptime. I knew there was a more elegant solution and here it is: $s=Get-WmiObject -query \"Select name,processId,state from Win32_service where state='running'\"foreach ($item in $s) {$p=(Get-Process | Where {$_.id -eq $item.ProcessID}).StartTime$u=(get-date).Subtract($p)Write-Host $item.Name `t $u.Days day $u.hours hours $u.minutes\u2026","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":170,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/170\/friendly-wmi-dates\/","url_meta":{"origin":7962,"position":2},"title":"Friendly WMI Dates","author":"Jeffery Hicks","date":"August 5, 2009","format":false,"excerpt":"Gee..you think you know something only to find out you don\u2019t. Or maybe this falls into the category of teaching an old dog new tricks. When I first started using PowerShell several years ago, I learned about how to convert a WMI date to a more user friendly format...","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5850,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/5850\/extending-powershell-datetime-objects\/","url_meta":{"origin":7962,"position":3},"title":"Extending PowerShell DateTime Objects","author":"Jeffery Hicks","date":"December 28, 2017","format":false,"excerpt":"I've been experimenting more with my PSTypeExtensionTools module, finding more objects to enhance.\u00a0 You can check out the project on Github and install the module from the PowerShell Gallery. My current fun has been with the DateTime object \u2013 specifically converting a value into another culture.\u00a0 Apparently those of us\u2026","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2017\/12\/image_thumb-13.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2017\/12\/image_thumb-13.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2017\/12\/image_thumb-13.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":6612,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/6612\/more-fun-with-docker-containers-and-powershell\/","url_meta":{"origin":7962,"position":4},"title":"More Fun with Docker Containers and PowerShell","author":"Jeffery Hicks","date":"March 29, 2019","format":false,"excerpt":"A few days ago I shared some experiences of working with Docker containers and PowerShell. As I continue to learn Docker, I am also learning how to manage it with PowerShell. The Docker command line tools are fine but I think they are even better when drizzled with a nice\u2026","rel":"","context":"In &quot;Docker&quot;","block_context":{"text":"Docker","link":"https:\/\/jdhitsolutions.com\/blog\/category\/docker\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/image_thumb-20.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/image_thumb-20.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/image_thumb-20.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/image_thumb-20.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":3377,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3377\/friday-fun-get-day-of-the-year-with-powershell\/","url_meta":{"origin":7962,"position":5},"title":"Friday Fun: Get Day of the Year with PowerShell","author":"Jeffery Hicks","date":"August 30, 2013","format":false,"excerpt":"Earlier this week I was having some fun with @EnergizedTech on Twitter, playing around with dates in PowerShell. I'm not even sure where we started but the experience got me thinking and it's Friday so let's have some fun. While I can easily find out what the day of the\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"calendar","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/08\/calendar.png?resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7962","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=7962"}],"version-history":[{"count":0,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7962\/revisions"}],"wp:attachment":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=7962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=7962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=7962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}