I have a form that allows users to select a start and end date. Start and end dates are always recorded with PST timings when saving the start and end dates I convert them to UTC and store them in a database.
is a component of the web server that checks against these dates and stays in the EST timezone.
A simplified explanation:
-
The data is entered in PST .
UTC stored in DB
EST / P>
How to handle PST timezone correctly?
If the web server checks them in local time - which means that the dates in EST To get your PST time, you only have to subtract 3 hours.
However, since they are in UTC, so you can specify only time zones while dragging from DB.
Comments
Post a Comment