Commit Graph
24 Commits
Author SHA1 Message Date
Jon Pentland aa38be3ac2 Use correct date when indexing. Update comment indexes to use America/Los_Angeles 2022-10-24 22:43:35 +01:00
Jon Pentland c5f17dc5e8 Bump version for linked plone.restapi test_statictime version check 2022-10-24 21:44:57 +01:00
Jon Pentland a3818a4743 Update changelog 2022-10-24 21:10:39 +01:00
Jon Pentland a95e67bcae Use py3 super syntax 2022-10-24 21:10:26 +01:00
Jon Pentland ab92def1a6 Use plone.app.event.base.DT to convert datetime -> DateTime 2022-10-24 21:10:12 +01:00
Jon Pentland a069f49719 Change timezone to America/Los_Angeles to expose DateTime exceptions 2022-10-24 21:09:49 +01:00
Jon Pentland 2380bdacb3 black/flake8 2022-10-23 09:35:27 +01:00
Jon Pentland 0d643964a2 Don't convert time when adding timezone in getter. Refactor time comparison in tests to correct direction (avoid comparing against negative deltas) 2022-10-23 09:24:59 +01:00
Jon Pentland 2df8ff4ea7 Try reindexing comment and increasing delta (in case of slow test causing failure) 2022-10-22 12:13:20 +01:00
Jon Pentland 35b11a0120 Prevent test failures when converting to timezone 2022-10-22 11:16:14 +01:00
Jon Pentland 194f2d9f76 Use configured portal timezone in tests 2022-10-22 10:48:10 +01:00
Jon Pentland b28d6d1f91 Don't set the server timezone, seems to break other tests 2022-10-21 17:12:08 +01:00
Jon Pentland 9944796627 Fix timezone tests 2022-10-21 16:11:19 +01:00
Jon Pentland f0cd076fd7 Update test_indexers to account for local timezones. Test across daylight savings bounds. 2022-10-21 14:20:32 +01:00
Jon Pentland c70abe2b63 Create a test for the custom getter to ensure timezones are being added 2022-10-21 14:19:27 +01:00
Jon Pentland 2506286c43 Create custom __getattribute__ method to return timezone aware dates from older Comment objects 2022-10-21 14:18:09 +01:00
Jon Pentland 103bd894d9 Use correct timezone when indexing comments 2022-10-21 14:17:34 +01:00
Jon Pentland fd1cfa8cad Use local timezone when setting dates 2022-10-21 14:16:58 +01:00
Jon Pentland 45ef9a51c4 Fix syntax errors 2022-10-18 15:56:05 +01:00
Jon Pentland d6bbff89c7 update conversation tests 2022-10-18 15:40:30 +01:00
Jon Pentland f1b753d088 Update tests 2022-10-18 15:33:08 +01:00
Jon Pentland 9f34a7f10d Add changelog 2022-10-18 15:17:30 +01:00
Jon Pentland 42e5238622 Update tests 2022-10-18 15:17:17 +01:00
Jon Pentland 16123e268b Set timezone for creation and modification dates of comments 2022-10-18 15:06:24 +01:00