@@ -464,7 +464,7 @@ def log_transaction(user_data, update):
464464 # datatime data
465465 current_datetime = dt .datetime .now (timezone )
466466 day = current_datetime .day
467- month = current_datetime .strftime ("%B " )
467+ month = current_datetime .strftime ("%b " )
468468
469469 # tracker data
470470 day_tracker = int (trackers [0 ])
@@ -485,7 +485,7 @@ def log_transaction(user_data, update):
485485 if day_tracker < day or day == 1 :
486486 msg = f"New entry for { day } { month } "
487487 if day == 1 :
488- month = (current_datetime - dt .timedelta (days = 1 )).strftime ("%B " )
488+ month = (current_datetime - dt .timedelta (days = 1 )).strftime ("%b " )
489489 # update prev day
490490 msg = f"{ msg } \n Creating sum for day { day_tracker } "
491491 gs .update_prev_day (sheet_id , month , first_row )
@@ -708,7 +708,7 @@ def cpf(update, context) -> int:
708708 try :
709709 row_data = [income , place , cpf , remarks ]
710710 current_datetime = dt .datetime .now (timezone )
711- month = current_datetime .strftime ("%B " )
711+ month = current_datetime .strftime ("%b " )
712712 if gs .update_income (sheet_id , month , row_data ):
713713 update .callback_query .message .reply_text ("Income has been added!" )
714714 else :
0 commit comments