Re: [Pharo-users] Voyage and Date

2017-03-09 Thread Hilaire
Hi, Bellow a digest I compiled regarding problems met with Voyage, and its resolutions, all documented  through messages in the mailing list (hello Slat ;) Hilaire Le 05/03/2017 à 09:49, Hilaire a écrit : Hi Stephan, I am

Re: [Pharo-users] Voyage and Date

2017-03-08 Thread stepharong
On Sun, 05 Mar 2017 09:49:02 +0100, Hilaire wrote: Hi Stephan, I am maintaining such a digest, with links to the discussion on the list. I will post it once I am done with Voyage. super cool Hilaire Le 04/03/2017 à 21:34,

Re: [Pharo-users] Voyage and Date

2017-03-05 Thread Esteban Lorenzano
Voyage cannot guess user intentions. But yes we could add a helper to do the transformation easier (like a special description for dates), but you will always need to configure that by hand. Esteban > On 5 Mar 2017, at 10:22, Hilaire wrote: > > Hi Esteban, > > This is a

Re: [Pharo-users] Voyage and Date

2017-03-05 Thread Hilaire
Hi Esteban, This is a recurring problem. May be Voyage should come with the necessary adaptor to have the Date right. It is likely *every* Voyage user faces the problem, and it does not fell good about the framework to have issue on such elementary feature. Hilaire Le 05/03/2017 à 10:06,

Re: [Pharo-users] Voyage and Date

2017-03-05 Thread Esteban Lorenzano
yes, this is a good solution. the base of the problem is that mongo does not actually has a Date type, just DateAndTime (even if is called Date). So if you want a Date, you need to do some conversion. Esteban > On 4 Mar 2017, at 11:25, Hilaire wrote: > > Concerning this

Re: [Pharo-users] Voyage and Date

2017-03-05 Thread Hilaire
Hi Stephan, I am maintaining such a digest, with links to the discussion on the list. I will post it once I am done with Voyage. Hilaire Le 04/03/2017 à 21:34, stepharong a écrit : > I would love to have a digest of the problems you encountered and the > solution. > Because like that we could

Re: [Pharo-users] Voyage and Date

2017-03-04 Thread stepharong
I would love to have a digest of the problems you encountered and the solution. Because like that we could write a better documentation. I cannot because I do not face the problems (since I'm not developing real apps for lack of time/concentration). Stef On Sat, 04 Mar 2017 12:15:39

Re: [Pharo-users] Voyage and Date

2017-03-04 Thread Norbert Hartl
I think sticking to a date string is the safest thing to do. Especially if you use iso -mm-dd because the database indexes are predix based and are able to sort and build ranges. So you don't loose much. The problem is regarding the conceptually incompatible offset and #asDate. #asDate just

Re: [Pharo-users] Voyage and Date

2017-03-04 Thread Sabine Manaa
Hi Hilaire, it is interesting to see your posts and having similar topics as me when starting to use voyage. I ended up with saving ZTimestamps. But I will think about storing strings too, because this is more readable when having direct look into mongo. There was a discussion in slack a few days

Re: [Pharo-users] Voyage and Date

2017-03-04 Thread Hilaire
Concerning this problem, one option I found is to get far away of the Voyage/Mongo Date/DateAndTime representation/conversion and stick to string, not really efficience, but well... mongoBirthday ^ VOToOneDescription new attributeName: 'birthday'; accessor: (MAPluggableAccessor

[Pharo-users] Voyage and Date

2017-03-03 Thread Hilaire
Hi, Not sure it is related to this: http://forum.world.st/Possible-bug-with-Voyage-Mongo-date-tt4735597.html But a date 1966-2-17 is persisted as a DateAndtime of value 1966-02-16T23:00:00+00:00 in the repository, which when retrieve will then be 1996-16-2, and so on Exactly the utc time