{"id":10767,"date":"2021-05-05T16:02:00","date_gmt":"2021-05-05T16:02:00","guid":{"rendered":"https:\/\/www.htmlgoodies.com\/?p=10767"},"modified":"2021-05-05T16:07:53","modified_gmt":"2021-05-05T16:07:53","slug":"javascript-time-zones","status":"publish","type":"post","link":"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/","title":{"rendered":"JavaScript: Working with Time Zones"},"content":{"rendered":"

If your application(s) include date and time information, there’s a good chance that you’ll have to deal with time zones. In a nutshell, that requires adding or subtracting hours to a DateTime<\/em> value to express it in another time zone. Sounds simple enough on the surface. However, in practice, it’s incredibly daunting. Not only do you need to determine the time zones of both locations, but you may even have to account for time zone changes due to political and\/or economic reasons. Moreover, you’ll likely need to deal with the abomination known as Daylight Savings Time. Finally, as if to add insult to injury, JavaScript’s native facilities for working with time zones are spotty at best, so you could find yourself having to perform all sorts of complex date and time calculations yourself.<\/span><\/p>\n

Are you intimidated yet? As the\u00a0<\/span>wise old Yoda once said<\/span><\/a>: “You will be. You will be.” All kidding aside, this tutorial aims to prepare you for battle by providing a bird’s eye view of the battlefield and weapons that you’ll need to be successful.<\/span><\/p>\n

Know Thine Enemy<\/h2>\n

In truth, time zones are a good thing; they allow different regions to experience a 24 hour day in much the same way. Without time zones, it would be dawn at 7 PM somewhere. By dividing the Earth into 24 equal time zones that follow the sun, everyone gets days and nights that happen around the same (clock) time.<\/p>\n

Each time zone is defined by its offset (difference) from Coordinated Universal Time (UTC), the world’s time standard. UTC time changes 1 hour forward and backward, corresponding to a 1-hour difference in mean solar time for every 15 degrees east or west of the prime meridian (0\u00b0 longitude) in Greenwich, a suburb of London, in the United Kingdom. The offset is expressed as either UTC- or UTC+ and the number of hours and minutes.<\/p>\n

At least, that’s the general idea. In reality, time zones have been drawn to match up with both internal and international borders so that we get something that looks like this:<\/p>\n

\"Time-Zones-Around-the-World\"<\/p>\n

To make matters worse, many regions utilize Daylight Saving Time (DST), which changes the time zone name and time during the DST period. The areas that don’t use DST remain in the standard time zone all year. For example, California uses Pacific Daylight Time (PDT) during the DST period but Pacific Standard Time (PST) during the rest of the year.<\/p>\n

Ok, it’s bad. Hold on; we’re not quite done yet.<\/p>\n

Local Time Zone Names and Abbreviations<\/h3>\n

To add fuel to the fire, many regions implement their own local time zone names within the same time zone. For example, Miami, Florida, is 5 hours behind UTC (UTC-5), and the standard time zone is Eastern Standard Time (EST). Meanwhile, Havana, Cuba’s local time zone, is called Cuba Standard Time (CST), despite being in the same time zone of UTC-5!<\/p>\n

Yet another source of confusion is that some time zones’ names in completely different places utilize the exact same abbreviation! For instance, India Standard Time (IST) and Israel Standard Time (IST) have the same abbreviation, despite having completely different UTC offsets of UTC+5:30 and UTC+2:00. (Did I mention that some time zone offsets include half hours, i.e., UTC+5:30?)<\/p>\n

Time Zone Localization in JavaScript<\/h2>\n

JavaScript’s Date<\/em> object represents a single moment in time in a platform-independent format. Date<\/em> objects contain a number representing the number of milliseconds that have elapsed since midnight on January 1, 1970, UTC. Hence, the time value at the heart of a Date<\/em> object is UTC, while methods that fetch the date and time or its components all return values in the local (i.e., host system) time zone and offset.<\/span><\/p>\n

There are a couple of notable methods that do not automatically localize results:<\/span><\/p>\n

    \n
  1. The getTime()<\/em> method returns the number of milliseconds since 1970, UTC time, without localization.<\/span><\/li>\n
  2. The toISOString()<\/em> method always returns the date in UTC time, which is confirmed by the letter “Z” at the end of the string. It stands for the Zero time zone, indicating that it has a 0 offset from the Coordinated Universal Time (UTC), as well as Zulu Time Zone, which is often used in aviation and the military as another name for UTC +0.<\/span><\/li>\n<\/ol>\n

    We can see JS localization in action by creating a new date of “2020-01-01”. Without time data, JavaScript sets it to midnight in London. When I output the stored date, it is presented with my local time zone offset of “GMT-0500”, which is actually early New Year’s Eve here in North America:<\/span><\/p>\n

    \"Time<\/p>\n

     <\/p>\n

    GMT stands for Greenwich Mean Time, which is the clock time at the Royal Observatory in Greenwich, U.K. located at longitude 0. The GMT system became the world time standard until Jan. 1, 1972.<\/p>\n

    \"Greenwich-clock.jpg\"<\/p>\n

    JavaScript Date\/Time Libraries to the Rescue!<\/h2>\n

    Several specialized libraries have cropped up to make dates work across multiple time zones. These include:<\/p>\n

      \n
    1. moment.js<\/a><\/li>\n
    2. date-fns<\/a><\/li>\n
    3. Luxon<\/a><\/li>\n
    4. DayJS<\/a><\/li>\n
    5. ms<\/a><\/li>\n
    6. js-joda<\/a><\/li>\n
    7. Spacetime<\/a><\/li>\n<\/ol>\n

      Moment.js<\/em> is still widely regarded as the king of the JavaScript date libraries, despite being designated a legacy project by its maintainers in 2020. Who will rise up to claim JS date library supremacy remains to be seen.<\/p>\n

      Conclusion<\/h2>\n

      I once posed a question to a popular developer community board how best to architect an app that dealt with multiple time zones. Their answer: don’t! So, of course, I did. I have since come to understand their dire warnings! Having since gained some experience with time zone management, I will share what I’ve learned in order to make it easier for those who follow. In up-coming articles, we’ll perform some common time zone calculations using some of the above libraries.<\/p>\n

       <\/p>\n


      \n

      Rob Gravelle resides in Ottawa, Canada, and has been an IT guru for over 20 years. In that time, Rob has built systems for intelligence-related organizations such as Canada Border Services and various commercial businesses. In his spare time, Rob has become an accomplished music artist with several CDs and digital releases<\/a> to his credit.<\/p>\n","protected":false},"excerpt":{"rendered":"

      If your application(s) include date and time information, there’s a good chance that you’ll have to deal with time zones. In a nutshell, that requires adding or subtracting hours to a DateTime value to express it in another time zone. Sounds simple enough on the surface. However, in practice, it’s incredibly daunting. Not only do […]<\/p>\n","protected":false},"author":90,"featured_media":10772,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[30620],"tags":[2789,3385],"b2b_audience":[37],"b2b_industry":[65],"b2b_product":[107],"acf":[],"yoast_head":"\nJavaScript: Programming Time Zones | HTMLGoodies.com<\/title>\n<meta name=\"description\" content=\"This JavaScript developer tutorial delves into the topic of working with time zones in JS. Click the link to learn more programming tips.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript: Programming Time Zones | HTMLGoodies.com\" \/>\n<meta property=\"og:description\" content=\"This JavaScript developer tutorial delves into the topic of working with time zones in JS. Click the link to learn more programming tips.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/\" \/>\n<meta property=\"og:site_name\" content=\"HTML Goodies\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-05T16:02:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-05T16:07:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/05\/JavaScript-Date-Time-Zones-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"724\" \/>\n\t<meta property=\"og:image:height\" content=\"456\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@htmlgoodies\" \/>\n<meta name=\"twitter:site\" content=\"@htmlgoodies\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rob Gravelle\" \/>\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\":\"Organization\",\"@id\":\"https:\/\/www.htmlgoodies.com\/#organization\",\"name\":\"HTML Goodies\",\"url\":\"https:\/\/www.htmlgoodies.com\/\",\"sameAs\":[\"https:\/\/twitter.com\/htmlgoodies\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.htmlgoodies.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/03\/HTMLg_weblogo_MobileLogo.png\",\"contentUrl\":\"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/03\/HTMLg_weblogo_MobileLogo.png\",\"width\":584,\"height\":136,\"caption\":\"HTML Goodies\"},\"image\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.htmlgoodies.com\/#website\",\"url\":\"https:\/\/www.htmlgoodies.com\/\",\"name\":\"HTML Goodies\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.htmlgoodies.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/#primaryimage\",\"url\":\"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/05\/JavaScript-Date-Time-Zones-2.png\",\"contentUrl\":\"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/05\/JavaScript-Date-Time-Zones-2.png\",\"width\":724,\"height\":456,\"caption\":\"JavaScript Time Zones\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/#webpage\",\"url\":\"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/\",\"name\":\"JavaScript: Programming Time Zones | HTMLGoodies.com\",\"isPartOf\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/#primaryimage\"},\"datePublished\":\"2021-05-05T16:02:00+00:00\",\"dateModified\":\"2021-05-05T16:07:53+00:00\",\"description\":\"This JavaScript developer tutorial delves into the topic of working with time zones in JS. Click the link to learn more programming tips.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.htmlgoodies.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript: Working with Time Zones\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/#webpage\"},\"author\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/#\/schema\/person\/d340101131281902e682ad0190b7ac75\"},\"headline\":\"JavaScript: Working with Time Zones\",\"datePublished\":\"2021-05-05T16:02:00+00:00\",\"dateModified\":\"2021-05-05T16:07:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/#webpage\"},\"wordCount\":995,\"publisher\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/05\/JavaScript-Date-Time-Zones-2.png\",\"keywords\":[\"date and time\",\"JavaScript\"],\"articleSection\":[\"Javascript\"],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.htmlgoodies.com\/#\/schema\/person\/d340101131281902e682ad0190b7ac75\",\"name\":\"Rob Gravelle\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.htmlgoodies.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/05\/rob-gravelle-150x150.jpg\",\"contentUrl\":\"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/05\/rob-gravelle-150x150.jpg\",\"caption\":\"Rob Gravelle\"},\"description\":\"Rob Gravelle resides in Ottawa, Canada, and has been an IT guru for over 20 years. In that time, Rob has built systems for intelligence-related organizations such as Canada Border Services and various commercial businesses. In his spare time, Rob has become an accomplished music artist with several CDs and digital releases to his credit.\",\"url\":\"https:\/\/www.htmlgoodies.com\/author\/rob-gravelle\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JavaScript: Programming Time Zones | HTMLGoodies.com","description":"This JavaScript developer tutorial delves into the topic of working with time zones in JS. Click the link to learn more programming tips.","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:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript: Programming Time Zones | HTMLGoodies.com","og_description":"This JavaScript developer tutorial delves into the topic of working with time zones in JS. Click the link to learn more programming tips.","og_url":"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/","og_site_name":"HTML Goodies","article_published_time":"2021-05-05T16:02:00+00:00","article_modified_time":"2021-05-05T16:07:53+00:00","og_image":[{"width":724,"height":456,"url":"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/05\/JavaScript-Date-Time-Zones-2.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_creator":"@htmlgoodies","twitter_site":"@htmlgoodies","twitter_misc":{"Written by":"Rob Gravelle","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/www.htmlgoodies.com\/#organization","name":"HTML Goodies","url":"https:\/\/www.htmlgoodies.com\/","sameAs":["https:\/\/twitter.com\/htmlgoodies"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.htmlgoodies.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/03\/HTMLg_weblogo_MobileLogo.png","contentUrl":"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/03\/HTMLg_weblogo_MobileLogo.png","width":584,"height":136,"caption":"HTML Goodies"},"image":{"@id":"https:\/\/www.htmlgoodies.com\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/www.htmlgoodies.com\/#website","url":"https:\/\/www.htmlgoodies.com\/","name":"HTML Goodies","description":"","publisher":{"@id":"https:\/\/www.htmlgoodies.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.htmlgoodies.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/#primaryimage","url":"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/05\/JavaScript-Date-Time-Zones-2.png","contentUrl":"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/05\/JavaScript-Date-Time-Zones-2.png","width":724,"height":456,"caption":"JavaScript Time Zones"},{"@type":"WebPage","@id":"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/#webpage","url":"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/","name":"JavaScript: Programming Time Zones | HTMLGoodies.com","isPartOf":{"@id":"https:\/\/www.htmlgoodies.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/#primaryimage"},"datePublished":"2021-05-05T16:02:00+00:00","dateModified":"2021-05-05T16:07:53+00:00","description":"This JavaScript developer tutorial delves into the topic of working with time zones in JS. Click the link to learn more programming tips.","breadcrumb":{"@id":"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.htmlgoodies.com\/"},{"@type":"ListItem","position":2,"name":"JavaScript: Working with Time Zones"}]},{"@type":"Article","@id":"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/#article","isPartOf":{"@id":"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/#webpage"},"author":{"@id":"https:\/\/www.htmlgoodies.com\/#\/schema\/person\/d340101131281902e682ad0190b7ac75"},"headline":"JavaScript: Working with Time Zones","datePublished":"2021-05-05T16:02:00+00:00","dateModified":"2021-05-05T16:07:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/#webpage"},"wordCount":995,"publisher":{"@id":"https:\/\/www.htmlgoodies.com\/#organization"},"image":{"@id":"https:\/\/www.htmlgoodies.com\/javascript\/javascript-time-zones\/#primaryimage"},"thumbnailUrl":"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/05\/JavaScript-Date-Time-Zones-2.png","keywords":["date and time","JavaScript"],"articleSection":["Javascript"],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.htmlgoodies.com\/#\/schema\/person\/d340101131281902e682ad0190b7ac75","name":"Rob Gravelle","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.htmlgoodies.com\/#\/schema\/person\/image\/","url":"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/05\/rob-gravelle-150x150.jpg","contentUrl":"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/05\/rob-gravelle-150x150.jpg","caption":"Rob Gravelle"},"description":"Rob Gravelle resides in Ottawa, Canada, and has been an IT guru for over 20 years. In that time, Rob has built systems for intelligence-related organizations such as Canada Border Services and various commercial businesses. In his spare time, Rob has become an accomplished music artist with several CDs and digital releases to his credit.","url":"https:\/\/www.htmlgoodies.com\/author\/rob-gravelle\/"}]}},"_links":{"self":[{"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/posts\/10767"}],"collection":[{"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/users\/90"}],"replies":[{"embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/comments?post=10767"}],"version-history":[{"count":0,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/posts\/10767\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/media\/10772"}],"wp:attachment":[{"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/media?parent=10767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/categories?post=10767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/tags?post=10767"},{"taxonomy":"b2b_audience","embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/b2b_audience?post=10767"},{"taxonomy":"b2b_industry","embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/b2b_industry?post=10767"},{"taxonomy":"b2b_product","embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/b2b_product?post=10767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}