Skip to content

Commit

Permalink
v3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kjmartens committed Feb 20, 2020
1 parent b1d2135 commit d519a03
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 20 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Solspace Calendar Changelog

## 3.0.1 - 2020-02-20
### Fixed
- Fixed a bug where some timezones would see incorrect behaviour with Month/Week/Day template functions.

## 3.0.0 - 2020-02-04

> {warning} This major version introduces editions support ('Lite' edition introduced - existing customers 'Standard' licenses become 'Pro' licenses) and requires Craft 3.4+ as well. Please ensure you have a recent database backup, and we recommend you test the update on a local/staging environment before updating your production server. [Please follow the upgrading guide available here](https://docs.solspace.com/craft/calendar/v3/setup/updating-calendar-2.html)!
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "solspace/craft3-calendar",
"description": "The most reliable and powerful event management plugin for Craft.",
"version": "3.0.0",
"version": "3.0.1",
"type": "craft-plugin",
"authors": [
{
Expand Down
2 changes: 1 addition & 1 deletion src/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ function (RegisterUserPermissionsEvent $event) {
'label' => self::t('Manage events in'),
'nested' => $editEventsPermissions,
],
self::PERMISSION_SETTINGS => ['label' => self::t('Settings')],
self::PERMISSION_SETTINGS => ['label' => self::t('Access Settings')],
self::PERMISSION_RESOURCES => ['label' => self::t('Access Resources')],
];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Library/Duration/DayDuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class DayDuration extends AbstractDuration
*/
protected function init(Carbon $targetDate)
{
$startDate = Carbon::createFromTimestamp($targetDate->getTimestamp(), DateHelper::UTC);
$startDate = new Carbon($targetDate->toDateTimeString(), DateHelper::UTC);
$startDate->setTime(0, 0, 0);

$endDate = $startDate->copy();
Expand Down
2 changes: 1 addition & 1 deletion src/Library/Duration/HourDuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class HourDuration extends AbstractDuration
*/
protected function init(Carbon $targetDate)
{
$startDate = Carbon::createFromTimestamp($targetDate->getTimestamp(), DateHelper::UTC);
$startDate = new Carbon($targetDate->toDateTimeString(), DateHelper::UTC);
$startDate->minute = 0;
$startDate->second = 0;

Expand Down
2 changes: 1 addition & 1 deletion src/Library/Duration/MonthDuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class MonthDuration extends AbstractDuration
*/
protected function init(Carbon $targetDate)
{
$startDate = Carbon::createFromTimestamp($targetDate->getTimestamp(), DateHelper::UTC);
$startDate = new Carbon($targetDate->toDateTimeString(), DateHelper::UTC);
$startDate->startOfMonth();

$endDate = $startDate->copy();
Expand Down
2 changes: 1 addition & 1 deletion src/Library/Duration/WeekDuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class WeekDuration extends AbstractDuration
*/
protected function init(Carbon $targetDate)
{
$startDate = Carbon::createFromTimestamp($targetDate->getTimestamp(), DateHelper::UTC);
$startDate = new Carbon($targetDate->toDateTimeString(), DateHelper::UTC);
$startDate->startOfWeek();

$endDate = $startDate->copy();
Expand Down
41 changes: 28 additions & 13 deletions src/Resources/js/event-builder/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Resources/js/event-builder/app.js.map

Large diffs are not rendered by default.

0 comments on commit d519a03

Please sign in to comment.