*

Oles

  • **
  • 9 posts
Hi everyone!

I’m using the Auction plugin for Osclass on a fully Ukrainian-language website. The system locale is set to Ukraine, and other plugins correctly display dates in Ukrainian (Cyrillic).
However, the Auction plugin always shows English date formats like:
Fri, 02 Aug or 02. Aug

So I have a few questions:
Why is the Auction plugin ignoring the system locale and displaying English date strings?
Is there a way to make the plugin display dates in Ukrainian — at least using Cyrillic month and day names?
Has anyone encountered this issue and found a solution or workaround?
Any help or advice would be really appreciated. Thank you in advance!
« Last Edit: July 31, 2025, 12:35:49 PM by Oles »

*

MB Themes

It depends (or should depend) on server localization.
You might customize format in plugin settings or manually in plugin files - date() function.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Oles

  • **
  • 9 posts
It depends (or should depend) on server localization.
You might customize format in plugin settings or manually in plugin files - date() function.
Thank you for your reply
I noticed that if I change the date format from 'D, d M' to 'd.m.Y' in the following function, it breaks the auction duration calculation.

// CALCULATE ESTIMATED DELIVERY
function act_estimated_delivery($days, $as_text = true) {
  $format = 'D, d M';
  return date($format, strtotime("+$days days"));
}
Can someone explain why this happens, and how I can safely localize the date (e.g. show Ukrainian or localized day/month names) without affecting the logic?

Is there a way to keep 'D, d M' for internal calculation and show a translated string only on the front-end?

Thanks in advance!

*

MB Themes

You can change
Code: [Select]
$format = 'D, d M';
into ie:
Code: [Select]
$format = 'Y-m-d';
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Oles

  • **
  • 9 posts
You can change
Code: [Select]
$format = 'D, d M';
into ie:
Code: [Select]
$format = 'Y-m-d';

I changed it this way, but it seems that it affects the auction end time.

*

MB Themes

Format of date cannot change date calculations.
Do you have way to test this, example or demo or something?
« Last Edit: August 04, 2025, 10:32:13 AM by MB Themes »
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots