---
title: "Discussion on \"Quick JS Snippet: Prevent local timezone to be forced when not specified\" | Hashnode"
description: "Discussion on \"Quick JS Snippet: Prevent local timezone to be forced when not specified\". JavaScript's Date object can be very tricky sometimes.\nOne of the most mind-screwing issues a JS dev can stumble upon is local timezone enforcement\nWhat do I mean by that?\nLet's say our system (no matter if Node or Browser) has a UTC-0300 timezone, a..."
url: "https://hashnode.com/posts/quick-js-snippet-prevent-local-timezone-to-be-forced-when-not-specified/62ce445124f934c8169863bf"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Quick JS Snippet: Prevent local timezone to be forced when not specified](https://mrtinsal.hashnode.dev/quick-js-snippet-prevent-local-timezone-to-be-forced-when-not-specified?utm_source=hashnode&utm_medium=feed)

JavaScript's Date object can be very tricky sometimes. One of the most mind-screwing issues a JS dev can stumble upon is local timezone enforcement What do I mean by that? Let's say our system (no matter if Node or Browser) has a UTC-0300 timezone, a...

Jul 13, 2022 · 2 min read · mrtinsal.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#dateobject](https://hashnode.com/tag/dateobject)
-   [#timeanddate](https://hashnode.com/tag/timeanddate)
-   [#timezone](https://hashnode.com/tag/timezone)

## Written by

[Martin](https://hashnode.com/@tincho)

@tincho

  
[View profile](https://hashnode.com/@tincho)

Software craftsman

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
