Is it a good idea to store local dates in the same table? For example a table can be updated from different time zones. If a table is updated from EST, then the time stored will be EST, if a table is updated from CST, then the time stored will be the PST time. My argument for this, is that it eliminates the processing of the dates at a later point of time. For example, if i need to write a query to fetch the records of a company between certain dates, then i can just query the database and return the records directly w/o any further conversion.
A simple analogy - Company table, which has an column to specify the timezone it is present in.
Jobs table which has all the jobs posted by different companies.
If i want to fetch the jobs posted by a company between certain dates i can just write a sql query and not worry about any post processing if i store the local datetimes.
Any opinions on this.
A simple analogy - Company table, which has an column to specify the timezone it is present in.
Jobs table which has all the jobs posted by different companies.
If i want to fetch the jobs posted by a company between certain dates i can just write a sql query and not worry about any post processing if i store the local datetimes.
Any opinions on this.