cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dispatch Date Wrong - Mega API

ColruytTeam
Honored Contributor

Hi Community,

We have seen a strange behaviour in the tool. 

The modification date an object in properties window and modification date from API has two hours difference.

Modification Date Error.PNGModification Date Error API.PNG

 

Can any body tell us why this is happening.

 

Thanks and Regards,

Venkatesh

Colruyt Team
2 Replies

Hey Jerome

 

I have the same case here and I was wondering can we change  the timezone of the tool?

It's difficult for users to work with and causes many issues.

 

Thank you,

jhorber
MEGA
MEGA

Hello

 

This difference is probably related to timezone and daylight bias

In the HOPEX repository, dates are stored in UTC time.
-> use internal format to get/set such dates
The GUI displays the date with end user settings (timezone, daylight bias)
-> use external format to get/set such dates

 

Get date with internal format
oObject.GetProp("~DNS5)lXo4jC0[Absolute Start Date]","Internal")

 

Get date with external format
oObject.GetProp("~DNS5)lXo4jC0[Absolute Start Date]","External")

Jerome