Skip to content

Commit dab8616

Browse files
committed
Fix date timezone bug when editing bill due date
Use parseLocalDate when loading bill for editing to prevent the date picker from showing the previous day. Bump version to 3.4.4.
1 parent 843c510 commit dab8616

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

apps/server/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ def process_auto_payments():
11221122

11231123
@api_bp.route('/api/version', methods=['GET'])
11241124
def get_version():
1125-
return jsonify({'version': '3.4.3', 'license': "O'Saasy", 'license_url': 'https://osaasy.dev/', 'features': ['enhanced_frequencies', 'auto_payments', 'postgresql_saas', 'row_tenancy', 'user_invites']})
1125+
return jsonify({'version': '3.4.4', 'license': "O'Saasy", 'license_url': 'https://osaasy.dev/', 'features': ['enhanced_frequencies', 'auto_payments', 'postgresql_saas', 'row_tenancy', 'user_invites']})
11261126

11271127
@api_bp.route('/ping')
11281128
def ping(): return jsonify({'status': 'ok'})
@@ -2708,7 +2708,7 @@ def jwt_get_version():
27082708
return jsonify({
27092709
'success': True,
27102710
'data': {
2711-
'version': '3.4.3',
2711+
'version': '3.4.4',
27122712
'api_version': 'v2',
27132713
'license': "O'Saasy",
27142714
'license_url': 'https://osaasy.dev/',

apps/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "client",
33
"private": true,
4-
"version": "3.4.3",
4+
"version": "3.4.4",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

apps/web/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ function App() {
310310
/>
311311
<Divider />
312312
<Text size="xs" c="dimmed" ta="center">
313-
BillManager v3.4.3 - Licensed under{' '}
313+
BillManager v3.4.4 - Licensed under{' '}
314314
<Anchor href="https://osaasy.dev/" target="_blank" size="xs">
315315
O'Saasy
316316
</Anchor>

apps/web/src/components/BillModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import type { Bill } from '../api/client';
2323
import * as api from '../api/client';
2424
import { IconPicker } from './IconPicker';
2525
import { BillIcon } from './BillIcon';
26-
import { formatDateForAPI } from '../utils/date';
26+
import { formatDateForAPI, parseLocalDate } from '../utils/date';
2727

2828
interface BillFormValues {
2929
name: string;
@@ -147,7 +147,7 @@ export function BillModal({ opened, onClose, onSave, onArchive, onUnarchive, onD
147147
frequency_type: bill.frequency_type || 'simple',
148148
monthly_dates: (frequencyConfig && frequencyConfig.dates) ? frequencyConfig.dates.join(', ') : '',
149149
weekly_days: (frequencyConfig && frequencyConfig.days) ? frequencyConfig.days : [],
150-
next_due: bill.next_due ? new Date(bill.next_due) : null,
150+
next_due: bill.next_due ? parseLocalDate(bill.next_due) : null,
151151
auto_payment: bill.auto_payment || false,
152152
icon: bill.icon || 'payment',
153153
type: bill.type || 'expense',

0 commit comments

Comments
 (0)