<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nisa JThani</title>
    <description>The latest articles on DEV Community by Nisa JThani (@nisajthani).</description>
    <link>https://dev.to/nisajthani</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F169978%2Fb3e0d993-59d1-4f33-8a9b-6032ba2aeb5c.jpg</url>
      <title>DEV Community: Nisa JThani</title>
      <link>https://dev.to/nisajthani</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nisajthani"/>
    <language>en</language>
    <item>
      <title>What can cause `new Date()` to return incorrect dates?</title>
      <dc:creator>Nisa JThani</dc:creator>
      <pubDate>Fri, 26 Jun 2020 04:19:03 +0000</pubDate>
      <link>https://dev.to/nisajthani/what-can-cause-new-date-to-return-incorrect-dates-3nd6</link>
      <guid>https://dev.to/nisajthani/what-can-cause-new-date-to-return-incorrect-dates-3nd6</guid>
      <description>&lt;p&gt;I am trying to solve a problem in which I have found date values in my MongoDB database to be inaccurate.&lt;/p&gt;

&lt;p&gt;For example, in my database, I have a list of tokens that are set to be deleted by the database 12 hours after they're created. I noticed some of my tokens were missing so I disabled the expiration function. It turns out some of these tokens have inaccurate creation dates. The worst case was a token that was created on June 25th but has an creation date value of '2020-06-03T09:00:29.506+00:00'. That's a 22 day difference!&lt;/p&gt;

&lt;p&gt;I use JavaScript's &lt;code&gt;new Date()&lt;/code&gt; method to create the dates. MongoDB by default will convert a date object created by JavaScript's &lt;code&gt;new Date()&lt;/code&gt; to UTC.&lt;/p&gt;

&lt;p&gt;I have ensured my system's built-in time synchronization is activated. What else can I do to make &lt;code&gt;new Date()&lt;/code&gt; return correct dates?&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>mongodb</category>
      <category>help</category>
    </item>
    <item>
      <title>Case insensitive queries with LoopBack 4</title>
      <dc:creator>Nisa JThani</dc:creator>
      <pubDate>Wed, 15 Apr 2020 13:48:53 +0000</pubDate>
      <link>https://dev.to/nisajthani/case-insensitive-queries-with-loopback-4-3k7o</link>
      <guid>https://dev.to/nisajthani/case-insensitive-queries-with-loopback-4-3k7o</guid>
      <description>&lt;p&gt;My first post!&lt;/p&gt;

&lt;p&gt;If the results of the query must contain the upper or lower case of some text, you will need to do a case-insensitive RegExp search:&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;p&gt;Note: I used MongoDB for my database.&lt;/p&gt;

</description>
      <category>loopback</category>
    </item>
  </channel>
</rss>
