mongoose-timezone icon indicating copy to clipboard operation
mongoose-timezone copied to clipboard

Can this be used on an existing dateset?

Open syedfaizan opened this issue 5 years ago • 1 comments
trafficstars

Hi OP,

Can this library be used for an already existing database? im having issues getting the right data as the user is in WIB and the database stores date in UTC. please help

syedfaizan avatar Sep 10 '20 15:09 syedfaizan

If it's already being stored as UTC, it should work.

If the database dates have time offsets applied, then I think the only way would be to create a sort of "migration script" to remove the offsets before using this plugin.

rodrigogs avatar Sep 10 '20 15:09 rodrigogs