Commit Graph

7 Commits

Author SHA1 Message Date
Rostislav Wolny
3ea44e45d4 Remove adjustForTimezoneDifference functionality
This is no longer used. It was used in just a couple of places
and was fixing a difference between PHP time zone and browser time.
We rely on WordPress to set PHP timezone to UTC and we use the site's
timezone on the client so the fix is no longer useful.
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
 Ján Mikláš
da190c5d06 Calculate server timezone offset in minutes
[MAILPOET-5495]
2024-06-17 12:51:16 +02:00
Jan Jakes
926620e8f8 Ignore strict types rule in all existing files that don't have it
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
Sam Najian
a3c9128f04 Update MailPoet\WP\DateTime methods and Docblocks
- The Docblocks for MailPoet\WP\DateTime::getCurrentTime, getCurrentDate
needed improvement
- Add MailPoet\WP\DateTime::getCurrentDateTime

[MAILPOET-4023]
2022-02-09 16:32:26 +01:00
Sam NAjian
897c9bbd8c Add tests for MailPoetDate.isInFuture and fix test eslint issues
- Convert date.js to typescript and define types
- Fix test script to include ts tests as well
- Make eslint for ts tests work correct and recognize mocha

[MAILPOET-4023]
2022-02-09 16:32:26 +01:00
Sam NAjian
b9432d3f3a Default scheduling date to tomorrow at 08 am
[MAILPOET-4023]
2022-02-09 16:32:26 +01:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00