Repository navigation
Closed
Labels
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Description
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.2.12-3
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: #69147
Email or phone of affected tester (no customers): applausetester+ck91125@applause.expensifail.com
Issue reported by: Applause - Internal Team
Action Performed:
Precondition: Account setup for BETA access on OD
- Navigate to staging.new.expensify.com
- Go to Workspaces settings page
- Go to Reports section
- Edit Default report title with:
{report:type} - {report:total} from {report:policyname} on {report:startdate} - Save the formula
- Create new report via FAB
- Add at least one expense transaction
- Observe the report title - Start date shows previous day
- Go back to expense preview & back to details page
- Observe correct date get reflected
Expected Result:
On step 8 - Correct current report date should display. In may case, date should be 2025-09-11, but it shows as 2025-09-10
Actual Result:
- Incorrect report start date reflects in report title, date displays previous day
- Also, "Custom" word missing in report title. Title displayed as "Expense Report - USD$X.XX from [WorkspaceName] on [StartDate]".
Note: Issue happens with "Test case 7 - Transactions" scenario too the report formula "Report from {report:startdate}" - Incorrect transaction dates which are previous dates are reflected when submitting expenses in offline mode (Please check the arttached mweb recording)
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
- Android: App
- Android: mWeb Chrome
- iOS: App
- iOS: mWeb Safari
- iOS: mWeb Chrome
- Windows: Chrome
- MacOS: Chrome / Safari
- MacOS: Desktop
Platforms Tested:
On which of our officially supported platforms was this issue tested:- Android: App
- Android: mWeb Chrome
- iOS: App
- iOS: mWeb Safari
- iOS: mWeb Chrome
- Windows: Chrome
- MacOS: Chrome / Safari
- MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidence
Bug6942173_1757630434495.Recording__4.mp4
Bug6942173_1757635396555.Screenrecording_09-11-2025_19-49-20_1.mp4
Issue Owner
Current Issue Owner: @suneoxUpwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~021968726932100348110
- Upwork Job ID: 1968726932100348110
- Last Price Increase: 2025-09-25
Metadata
Metadata
Labels
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Type
Projects
- StatusShow more project fieldsDone
Activity
melvin-bot commentedon Sep 12, 2025
Triggered auto assignment to @heyjennahay (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.melvin-bot commentedon Sep 12, 2025
Triggered auto assignment to @aldo-expensify (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Sep 12, 2025
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Sep 12, 2025
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
neil-marcellini commentedon Sep 12, 2025
This only happens under a beta. It's not the deploy blocker.
23 remaining items
harjot20022001 commentedon Sep 18, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
When a user creates a new expense report, the start date displayed in the report's title is sometimes incorrect, showing the previous day's date. This issue seems to be related to the user's timezone.
What is the root cause of that problem?
The root cause of this problem is that the report's creation date is being formatted using the user's local timezone. When a user is in a timezone that is behind UTC (e.g., in the Americas), creating a report late in their day can result in the UTC date being the next day. However, the current implementation formats this date back to the local timezone, which can incorrectly roll the date back to the previous day.
What changes do you think we should make in order to solve the problem?
To solve this, we should ensure that the report start date is always formatted in a consistent timezone, such as UTC. This will prevent discrepancies caused by the user's local timezone settings.
I propose the following changes in
src/libs/ReportUtils.ts:formatInTimeZonefunction from thedate-fns-tzlibrary, which is already a project dependency.populateOptimisticReportFormulafunction, useformatInTimeZoneto format thecreatedDate.Here is a code snippet of the proposed change:
File:
src/libs/ReportUtils.tsThis will ensure the date is consistently formatted in UTC, resolving the issue.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
To prevent regressions, we should add automated tests that cover the following scenarios:
What alternative solutions did you explore? (Optional)
One alternative solution I considered was to manually adjust the
createdDateobject by adding the timezone offset before formatting. However, this approach is more complex and prone to errors compared to using a well-tested library likedate-fns-tz, which is designed to handle these timezone conversions reliably. The proposed solution is cleaner and more maintainable.suneox commentedon Sep 23, 2025
I lost track of this one and will review it later today
melvin-bot commentedon Sep 25, 2025
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
melvin-bot commentedon Sep 26, 2025
@sosek108 @suneox @heyjennahay @aldo-expensify this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
aldo-expensify commentedon Sep 26, 2025
Friendly bump @suneoxOr maybe I have to check this first: #70474 (comment)
melvin-bot commentedon Sep 26, 2025
@suneox Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
aldo-expensify commentedon Sep 27, 2025
Didn't have time to get to this again, was working in more pressing stability issues and external commit
mvtglobally commentedon Sep 27, 2025
Issue not reproducible during KI retests. (First week)
suneox commentedon Sep 29, 2025
I cannot reproduce this issue on the latest main, but I found another issue related to the report title: it shows ₫0 instead of ₫123 even when an expense is present while using VND.
neil-marcellini commentedon Sep 29, 2025
Ok, please report that bug separately in Slack and we'll close this.