outsource4quality

outsource4quality does not currently provide support for this item.

6 comments found.

Arabic days and month supported?

Hi amzee,

Tks for your enquiry! The language file is in utf-8 format which allow users to create their own simple translation in their own language file. For ambiguous dates, I use regex to read the specific format. As I personally do not have knowledge on Arabic date format. If you can provide me more information on how different it is from other formats and which function you need to use it.

Hi,

You think that it is possible to obtain all the dates between a start date and a end date in an array ?

Thanks!

Mick

Hi Mick,

Sorry for the late reply. Believe you should have got the answer. You may get the result with the GetInrange function.

Hi,

I tested this, but I obtain an empty array : array(0) { }

$result = MDT::GetInrange($dates = array(), $start='2012-2-3', $end='2012-4-4', $format=output_date_format);
var_dump($result);

Can you correct my error?

Thanks!

Mick

Mick,

In the first parameter, ie $dates, you need to provide the dates you want to work with. Currently, there is no value in the array. If you are unfamiliar with php, I would suggest you break it down to a few statements:

$mydates = array(‘2012-3-3’, ‘September 25, 2015’); // Put all your dates in here separate them by commas

$mystart = ‘2012-2-3’; // Your start date

$myend = ‘2012-4-4’; // Your end date

$result = MDT ::GetInrange($mydates, $mystart, $myend); var_dump($result);

Hi,

In fact, it is not what I have need.

I would like to obtain all the dates between $mystart and $myend. An example: http://boonedocks.net/mike/archives/137-Creating-a-Date-Range-Array-with-PHP.html

Your example seems to check if the dates ($mydates) are present between $mystart and $myend only.

A solution?

Thanks again!

Mick

Hi Mike,

You’re right. That’s exactly what GetInrange is designed for. For your case, do you mean you need a list of dates in array? Suggest you do the following: 1. Get the days between start and end using GetDiff

2. Use a for loop to create the array and format the date using GetDate.

We may also make a custom function for you at just $5 if you like.

Hi,

In fact, I use already some functions. I just thought that this could supplement the functions which are available in your file and make your file even more useful !

Thanks again!

Mick

Thanks very much for the suggestion Mick! We can certainly consider that in our next release.

hello,

is it possible to store the timezone in a MySQL user database?

Hi ArvellLewis,

Currently, the timezone setting is placed in the language files. It is designed to use without complexity of mysql setting and user may assign different timezone based on language of user.

In fact, you can comment out the timezone setting in language file. As below:

1. Add ’//’ to Line 8 in language file as below
// define(‘timezone’, ‘Asia/Hong_Kong’);
2. Add your mysql script to read the timezone setting and define your setting using
define(‘timezone’, $mytimezone);

Hope this help!

by
by
by
by
by
by