PDA

View Full Version : passing a value to a datefield



rnel
21 Jul 2014, 7:15 AM
Hi,

I have a datefield with format 'd/m/Y H:i', i do datefield.setValue(date_) with date_ having hours = 13. The thing is, after the setValue statement the variable date_ loses the hours, meaning date_.getHours() = 0. Hope i'm being clear, but it seems like whatever the format of the datefield, datefield.setValue(date_) reset the date hours to 0 (corresponding to its default format as specified in the documentation). Please let me know if this is a bug or i'm using it not like i should.

Thanks.

slemmon
1 Aug 2014, 9:27 AM
Hi,

I'm not seeing the issue described when I try and create a test case from your description. Feel free to fork the fiddle below and modify the test case to better represent the test case you're working with.

8c1

rnel
1 Aug 2014, 3:54 PM
Well, i suspect the issue at that time was that i was using many timezones in my date calculations. sorry and thanks for your reply.