jolivac256 Posted October 3, 2023 Share Posted October 3, 2023 Hi there, if possible, I would like to change the postgres DB (jolivac256_mrwallace) Timezone and add an extension to allow crypting functions. I hope the following commands are enough: SET TIME ZONE 'America/Mexico_City'; CREATE EXTENSION IF NOT EXISTS pgcrypto; thank you in advance. Link to comment Share on other sites More sharing options...
wolstech Posted October 4, 2023 Share Posted October 4, 2023 I'm not sure if the timezone can be set per database in PG or not... The extension will need to be created by Krydos if it's supported. Link to comment Share on other sites More sharing options...
jolivac256 Posted October 4, 2023 Author Share Posted October 4, 2023 Ok, I hope so. Anyway, thank You Wolstech. Link to comment Share on other sites More sharing options...
Krydos Posted October 4, 2023 Share Posted October 4, 2023 The pgcrypto externsion has been created. For the timezone the proper way to handle it is in your software. For instance if you're using PHP you could use date_default_timezone_set('America/Mexico_City'); Another alternative is you could get a VPS and set the time zone however you want. 1 Link to comment Share on other sites More sharing options...
jolivac256 Posted October 4, 2023 Author Share Posted October 4, 2023 Hi Krydos, You're right, there are some options to manage timezones, and the vps alternative. Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts