Skip to content

JM and JMS date formats don't work #5699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 of 2 tasks
Jumanjidev opened this issue Apr 17, 2025 · 3 comments
Open
1 of 2 tasks

JM and JMS date formats don't work #5699

Jumanjidev opened this issue Apr 17, 2025 · 3 comments
Assignees
Labels
status: not a bug This is not a bug.

Comments

@Jumanjidev
Copy link

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

The current behavior displays 24h format hour and apparently the issue is only on interface settings, but under custom code those formats work well.

Expected Behavior

The format should return 8:00 am.

Steps to Reproduce

  1. Create new page
  2. Drag a text widget to show data
  3. Set supabase custom action or API Call to return datetime data
  4. Select action output
  5. Set jm format either from preset list or choosing custom and writing jm

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT88lMmAx89OxcRE7aX6bsEwoCURNjsja7ssltZxYw81F4jyPIYEfPTOVE5AXsDmSlFIPVqcgUUG086LuPKeDe04H02ub4hg+L9XdzzyfDm6V7abCYeNP0EmEp5YCFPF1KeriCUnB/NzWiEf6ju1eufIQhXvGL7MPUQZIPyhKoDJ+WCXLiPjEyYzwREJIGreTI5ODEz25eKMrop5yfj/0w==

Visual documentation

Image

Image

Environment

- FlutterFlow version: FlutterFlow v5.4.3 released April 16, 2025
- Platform: Web
- Browser name and version: Edge
- Operating system and version affected: Windows 10

Additional Information

No response

@Jumanjidev Jumanjidev added the status: needs triage A potential issue that has not been confirmed as a bug. label Apr 17, 2025
@Juansarmi Juansarmi self-assigned this Apr 17, 2025
Copy link
Collaborator

Hi! I'm sorry you're experiencing this issue.
What’s happening is that the jm format is locale-dependent.

  • In English (en), jm is interpreted as h:mm a (12-hour format with AM/PM).
  • However, in other languages like Spanish (es), French (fr), etc., the default convention is to use the 24-hour format. So jm returns something like 17:30 without AM/PM.

But no worries! Here’s a simple workaround:

Captura de pantalla 2025-04-17 125634.png

Set the DateTime format to custom and use the following format:

h:mm a

If I understood correctly, this should return the format you're expecting.

Here’s a helpful link with more info: https://docs.flutterflow.io/resources/data-representation/global-properties/#current-time

I hope this helps!

@Juansarmi Juansarmi removed the status: needs triage A potential issue that has not been confirmed as a bug. label Apr 17, 2025
@Juansarmi Juansarmi added the status: not a bug This is not a bug. label Apr 17, 2025 — with Linear
@Jumanjidev
Copy link
Author

Thanks, @Juansarmi. Very thoughtful of you. Just out of curiosity, is it possible to make jm not local-dependent? Cause this doesn't happen using code, so I still see it as an issue.

Copy link
Collaborator

Hi again!
I'm glad to hear that this solved your issue.
You can also set the project language to English (or another language where this format is standard), and that should make "jm" display in the desired format.

Best regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: not a bug This is not a bug.
Projects
None yet
Development

No branches or pull requests

2 participants