Comments (2)
I've added SwpmUtils::use_gmt() function which returns true if "Use WordPress Timezone" is DISABLED and false if it's ENABLED.
- Replaced all
date()
andtime()
functions affected by timezone (where applicable) with WP'scurrent_time()
function, which returns either GMT time or time in WP timezone (if "Use WordPress Timezone" option enabled).
c5e683d
Note I haven't changed those functions for cookies handling and logs classes as this is not needed.
- Addons need to be checked and converted to new way of date handling. Created new issue for that https://github.com/Arsenal21/simple-membership-addons/issues/3
@wp-insider , can you please do some tests and let me know my changes aren't breaking anything? Make sure to use date-handling branch https://github.com/wp-insider/simple-membership/tree/date-handling
from simple-membership.
This has been solved.
from simple-membership.
Related Issues (20)
- Default after rego message not displayed when using Twentyseventeen theme HOT 2
- Passwords are still saved in a non-secure way HOT 7
- Use of $_SERVER["SERVER_NAME"] in SwpmMiscUtils::get_current_page_url() HOT 3
- More language strings not translatable HOT 3
- Braintree payment fails if customer goes with PayPal payment
- parse_str() without resulting argument is deprecated since PHP 7.2
- Typo in German translation HOT 1
- Add strings to custom message plugin HOT 2
- Need to timestamp changes in subscriber account HOT 2
- Cosmetic adjustment HOT 1
- SWPM_Members prepare_items() exceeding available memory
- Custom registration email body does not have variables replaced HOT 5
- class.swpm-members.php add() function: Allow $form to be true and return without output HOT 3
- Security issue: Privilege escalation / Account takeover issue HOT 9
- Feature Request: Hooks before member is added, edited or deleted HOT 3
- [SWPM Partial Protection] PR to add 'visible_to' filters based on WP Affiliates Membership account status
- Deleted user can remain logged in and use the website HOT 2
- Possible bug with Paypal (duplicated payments) HOT 3
- [FIX] [SWPM Affiliates Manager Integration] Buyer email not forwarded to Affiliates Manager HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-membership.