Skip to content

Commit

Permalink
fix(dailies): remove broken tz plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
SabreCat committed Sep 9, 2024
1 parent f3320d9 commit d7c9a78
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 19 deletions.
12 changes: 0 additions & 12 deletions website/client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion website/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"lodash": "^4.17.21",
"moment": "^2.29.4",
"moment-locales-webpack-plugin": "^1.2.0",
"moment-timezone": "^0.5.45",
"nconf": "^0.12.1",
"sass": "^1.63.4",
"sass-loader": "^14.1.1",
Expand Down
8 changes: 3 additions & 5 deletions website/client/src/components/payments/buyGemsModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@

<script>
import find from 'lodash/find';
import moment from 'moment-timezone';
import moment from 'moment';
import { mapState } from '@/libs/store';
import markdown from '@/directives/markdown';
import paymentsMixin from '@/mixins/payments';
Expand Down Expand Up @@ -445,20 +445,18 @@ export default {
);
if (!currentEvent) return null;
const zone = moment.tz.guess();
return {
name: currentEvent.event,
class: currentEvent.gemsPromo ? `event-${currentEvent.event}` : '',
gemsPromo: currentEvent.gemsPromo,
promo: currentEvent.promo,
startMonth: moment(currentEvent.start).format('MMMM'),
startOrdinal: moment(currentEvent.start).format('Do'),
startTime: moment.tz(currentEvent.start, zone).format('hh:mm A z'),
startTime: moment(currentEvent.start).format('hh:mm A'),
startUTC: moment(currentEvent.start).utc().format('hh:mm A'),
endMonth: moment(currentEvent.end).format('MMMM'),
endOrdinal: moment(currentEvent.end).format('Do'),
endTime: moment.tz(currentEvent.end, zone).format('hh:mm A z'),
endTime: moment(currentEvent.end).format('hh:mm A'),
endUTC: moment(currentEvent.end).utc().format('hh:mm A'),
};
},
Expand Down
2 changes: 1 addition & 1 deletion website/common/locales/en/limited.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
"g1g1Limitations": "This is a limited time event that starts on <%= promoStartMonth %> <%= promoStartOrdinal %> at <%= promoStartTime %> and will end <%= promoEndMonth %> <%= promoEndOrdinal %> at <%= promoEndTime %>. This promotion only applies when you gift to another Habitican. If you or your gift recipient already have a subscription, the gifted subscription will add months of credit that will only be used after the current subscription is canceled or expires.",
"noLongerAvailable": "This item is no longer available.",
"gemSaleHow": "Between <%= eventStartMonth %> <%= eventStartOrdinal %> and <%= eventEndOrdinal %>, simply purchase any Gem bundle like usual and your account will be credited with the promotional amount of Gems. More Gems to spend, share, or save for any future releases!",
"gemSaleLimitationsText": "This promotion only applies during the limited time event. This event starts on <%= eventStartMonth %> <%= eventStartOrdinal %> at <%= eventStartTime %> (<%= eventStartUTC %> UTC) and will end <%= eventEndMonth %> <%= eventEndOrdinal %> at <%= eventEndTime %> (<%= eventEndUTC %> UTC) . The promo offer is only available when buying Gems for yourself.",
"gemSaleLimitationsText": "This promotion only applies during the limited time event. This event starts on <%= eventStartMonth %> <%= eventStartOrdinal %> at <%= eventStartTime %> local time (<%= eventStartUTC %> UTC) and will end <%= eventEndMonth %> <%= eventEndOrdinal %> at <%= eventEndTime %> local time (<%= eventEndUTC %> UTC). The promo offer is only available when buying Gems for yourself.",
"anniversaryLimitations": "This is a limited time event that starts on January 30th at 8:00 AM ET (13:00 UTC) and will end February 8th at 11:59 PM ET (04:59 UTC). The Limited Edition Jubilant Gryphatrice and ten Magic Hatching Potions will be available to buy during this time. The other Gifts listed in the Four for Free section will be automatically delivered to all accounts that were active in the 30 days prior to day the gift is sent. Accounts created after the gifts are sent will not be able to claim them.",
"anniversaryLimitedDates": "January 30th to February 8th",
"limitedEvent": "Limited Event",
Expand Down

0 comments on commit d7c9a78

Please sign in to comment.