Marking Attendance: Timezone issue

Hi All,


It looks like Timezone s are not properly managed throughout the application. 
While trying to mark the attendance for the current day it says “Attendance cannot be marked for future days”.

It looks like the validate_att_date method works on a different timezone than the one set in defs.py, (though everywhere else the date/time displayed is good) Or am I missing to make any other configuration somewhere else?

Thanks.



You received this message because you are subscribed to the Google Groups “ERPNext Technical Forum” group.

To view this discussion on the web visit https://groups.google.com/d/msg/wnframework/-/7-Wfe8orkaYJ.

To post to this group, send email to wn...@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.

You are right.

it should be compared with webnotes.utils.nowdate()

In fact datetime.datetime.now should never be used in business logic.

You want to fix it and do a pull request?

btw, I don't know if Anand has uploaded it but he was going to commit a patched schema file.

- Rushabh



---------------------------------------------------------
ERPNext - World's most affordable ERP.

W: https://erpnext.com
T: @rushabh_mehta

On 01-Mar-2012, at 11:14 AM, Dev wrote:

Hi All,

It looks like Timezone s are not properly managed throughout the application. 
While trying to mark the attendance for the current day it says "Attendance cannot be marked for future days".

It looks like the validate_att_date method works on a different timezone than the one set in defs.py, (though everywhere else the date/time displayed is good) Or am I missing to make any other configuration somewhere else?

Thanks.




You received this message because you are subscribed to the Google Groups “ERPNext Technical Forum” group.

To view this discussion on the web visit https://groups.google.com/d/msg/wnframework/-/7-Wfe8orkaYJ.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




You received this message because you are subscribed to the Google Groups “ERPNext Technical Forum” group.

To post to this group, send email to wn...@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.


Thanks Rushab,


About pulling this, I think I am not so confident to do it (yet), I think I will give it sometime to
get comfortable with the app (and the Language, this is my first Python exp), before starting to commit stuff.


And about the Schema, that will be great if you can do this. Please let me know when you have this uploaded.

Thanks!

On Thu, Mar 1, 2012 at 11:35 AM, Rushabh Mehta <rm...@gmail.com> wrote:
You are right.

it should be compared with webnotes.utils.nowdate()

In fact datetime.datetime.now should never be used in business logic.

You want to fix it and do a pull request?

btw, I don't know if Anand has uploaded it but he was going to commit a patched schema file.

- Rushabh



---------------------------------------------------------
ERPNext - World's most affordable ERP.

W: https://erpnext.com
T: @rushabh_mehta

On 01-Mar-2012, at 11:14 AM, Dev wrote:

Hi All,

It looks like Timezone s are not properly managed throughout the application.
While trying to mark the attendance for the current day it says "Attendance cannot be marked for future days".

It looks like the validate_att_date method works on a different timezone than the one set in defs.py, (though everywhere else the date/time displayed is good) Or am I missing to make any other configuration somewhere else?

Thanks.




You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To view this discussion on the web visit https://groups.google.com/d/msg/wnframework/-/7-Wfe8orkaYJ.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




--
Regards,

Sudev.

Mob: +91 80 1010 8033
Phone: +91 11 4266 5226

su...@gmail.com




You received this message because you are subscribed to the Google Groups “ERPNext Technical Forum” group.

To post to this group, send email to wn...@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.

Hi,


We will upload the schema file: master.sql.gz by tomorrow.

Thanks,
Anand.

On Thu, Mar 1, 2012 at 11:42 AM, sudev kk <su…@gmail.com> wrote:


Thanks Rushab,

About pulling this, I think I am not so confident to do it (yet), I think I will give it sometime to
get comfortable with the app (and the Language, this is my first Python exp), before starting to commit stuff.

And about the Schema, that will be great if you can do this. Please let me know when you have this uploaded.

Thanks!


On Thu, Mar 1, 2012 at 11:35 AM, Rushabh Mehta <rm...@gmail.com> wrote:
You are right.

it should be compared with webnotes.utils.nowdate()

In fact datetime.datetime.now should never be used in business logic.

You want to fix it and do a pull request?

btw, I don't know if Anand has uploaded it but he was going to commit a patched schema file.

- Rushabh



---------------------------------------------------------

ERPNext - World's most affordable ERP.

W: https://erpnext.com
T: @rushabh_mehta


On 01-Mar-2012, at 11:14 AM, Dev wrote:

Hi All,

It looks like Timezone s are not properly managed throughout the application.
While trying to mark the attendance for the current day it says "Attendance cannot be marked for future days".

It looks like the validate_att_date method works on a different timezone than the one set in defs.py, (though everywhere else the date/time displayed is good) Or am I missing to make any other configuration somewhere else?

Thanks.




You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To view this discussion on the web visit https://groups.google.com/d/msg/wnframework/-/7-Wfe8orkaYJ.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




--
Regards,

Sudev.

Mob: +91 80 1010 8033
Phone: +91 11 4266 5226

su...@gmail.com




You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




You received this message because you are subscribed to the Google Groups “ERPNext Technical Forum” group.

To post to this group, send email to wn...@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.


Thanks Anand, that will help a lot!
If possible please drop a line once you have done this.

Best,
Sudev

On Thu, Mar 1, 2012 at 12:20 PM, Anand Doshi <an...@iwebnotes.com> wrote:
Hi,

We will upload the schema file: master.sql.gz by tomorrow.

Thanks,
Anand.

On Thu, Mar 1, 2012 at 11:42 AM, sudev kk <su...@gmail.com> wrote:

Thanks Rushab,

About pulling this, I think I am not so confident to do it (yet), I think I will give it sometime to
get comfortable with the app (and the Language, this is my first Python exp), before starting to commit stuff.

And about the Schema, that will be great if you can do this. Please let me know when you have this uploaded.

Thanks!


On Thu, Mar 1, 2012 at 11:35 AM, Rushabh Mehta <rm...@gmail.com> wrote:
You are right.

it should be compared with webnotes.utils.nowdate()

In fact datetime.datetime.now should never be used in business logic.

You want to fix it and do a pull request?

btw, I don't know if Anand has uploaded it but he was going to commit a patched schema file.

- Rushabh



---------------------------------------------------------

ERPNext - World's most affordable ERP.

W: https://erpnext.com
T: @rushabh_mehta


On 01-Mar-2012, at 11:14 AM, Dev wrote:

Hi All,

It looks like Timezone s are not properly managed throughout the application.
While trying to mark the attendance for the current day it says "Attendance cannot be marked for future days".

It looks like the validate_att_date method works on a different timezone than the one set in defs.py, (though everywhere else the date/time displayed is good) Or am I missing to make any other configuration somewhere else?

Thanks.




You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To view this discussion on the web visit https://groups.google.com/d/msg/wnframework/-/7-Wfe8orkaYJ.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




--
Regards,

Sudev.

Mob: +91 80 1010 8033



You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




--
Regards,

Sudev.

Mob: +91 80 1010 8033
Phone: +91 11 4266 5226

su...@gmail.com




You received this message because you are subscribed to the Google Groups “ERPNext Technical Forum” group.

To post to this group, send email to wn...@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.


Anand, very sorry to bug you on this, but did you get a chance to update the Schema?
I understand you guys are pretty much occupied, so if you haven't, can you please tell me when I can expect this, so that I can plan accordingly.


On Thu, Mar 1, 2012 at 12:46 PM, sudev kk <su...@gmail.com> wrote:

Thanks Anand, that will help a lot!
If possible please drop a line once you have done this.

Best,
Sudev

On Thu, Mar 1, 2012 at 12:20 PM, Anand Doshi <an...@iwebnotes.com> wrote:
Hi,

We will upload the schema file: master.sql.gz by tomorrow.

Thanks,
Anand.

On Thu, Mar 1, 2012 at 11:42 AM, sudev kk <su...@gmail.com> wrote:

Thanks Rushab,

About pulling this, I think I am not so confident to do it (yet), I think I will give it sometime to
get comfortable with the app (and the Language, this is my first Python exp), before starting to commit stuff.

And about the Schema, that will be great if you can do this. Please let me know when you have this uploaded.

Thanks!


On Thu, Mar 1, 2012 at 11:35 AM, Rushabh Mehta <rm...@gmail.com> wrote:
You are right.

it should be compared with webnotes.utils.nowdate()

In fact datetime.datetime.now should never be used in business logic.

You want to fix it and do a pull request?

btw, I don't know if Anand has uploaded it but he was going to commit a patched schema file.

- Rushabh



---------------------------------------------------------

ERPNext - World's most affordable ERP.

W: https://erpnext.com
T: @rushabh_mehta


On 01-Mar-2012, at 11:14 AM, Dev wrote:

Hi All,

It looks like Timezone s are not properly managed throughout the application.
While trying to mark the attendance for the current day it says "Attendance cannot be marked for future days".

It looks like the validate_att_date method works on a different timezone than the one set in defs.py, (though everywhere else the date/time displayed is good) Or am I missing to make any other configuration somewhere else?

Thanks.




You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To view this discussion on the web visit https://groups.google.com/d/msg/wnframework/-/7-Wfe8orkaYJ.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




--
Regards,

Sudev.

Mob: +91 80 1010 8033




You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




--
Regards,

Sudev.

Mob: +91 80 1010 8033




--
Regards,

Sudev.

Mob: +91 80 1010 8033
Phone: +91 11 4266 5226

su...@gmail.com




You received this message because you are subscribed to the Google Groups “ERPNext Technical Forum” group.

To post to this group, send email to wn...@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.

Hi sudev,

I will put it up by tonight. There were some issues which required repatching and hence the master schema wasnt ready yest.

Thanks,
Anand

Sent from my Sony Ericsson Xperia mini pro

sudev kk su...@gmail.com wrote:

Anand, very sorry to bug you on this, but did you get a chance to update
the Schema?
I understand you guys are pretty much occupied, so if you haven’t, can you
please tell me when I can expect this, so that I can plan accordingly.

On Thu, Mar 1, 2012 at 12:46 PM, sudev kk su...@gmail.com wrote:

Thanks Anand, that will help a lot!
If possible please drop a line once you have done this.

Best,
Sudev

On Thu, Mar 1, 2012 at 12:20 PM, Anand Doshi an...@iwebnotes.com wrote:

Hi,

We will upload the schema file: master.sql.gz by tomorrow.

Thanks,
Anand.

On Thu, Mar 1, 2012 at 11:42 AM, sudev kk su...@gmail.com wrote:

Thanks Rushab,

About pulling this, I think I am not so confident to do it (yet), I
think I will give it sometime to
get comfortable with the app (and the Language, this is my first Python
exp), before starting to commit stuff.

And about the Schema, that will be great if you can do this. Please let
me know when you have this uploaded.

Thanks!

On Thu, Mar 1, 2012 at 11:35 AM, Rushabh Mehta rm...@gmail.com wrote:

You are right.

it should be compared with webnotes.utils.nowdate()

In fact datetime.datetime.now should never be used in business logic.

You want to fix it and do a pull request?

btw, I don’t know if Anand has uploaded it but he was going to commit a
patched schema file.

  • Rushabh

ERPNext - World’s most affordable ERP.

W: https://erpnext.com
T: @rushabh_mehta

On 01-Mar-2012, at 11:14 AM, Dev wrote:

Hi All,

It looks like Timezone s are not properly managed throughout the
application.
While trying to mark the attendance for the current day it says
“Attendance cannot be marked for future days”.

It looks like the validate_att_date method works on a different
timezone than the one set in defs.py, (though everywhere else the date/time
displayed is good) Or am I missing to make any other configuration
somewhere else?

Thanks.


You received this message because you are subscribed to the Google
Groups “ERPNext Technical Forum” group.
To view this discussion on the web visit
https://groups.google.com/d/msg/wnframework/-/7-Wfe8orkaYJ.
To post to this group, send email to wn...@googlegroups.com.
To unsubscribe from this group, send email to
wnframework+un...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/wnframework?hl=en.


You received this message because you are subscribed to the Google
Groups “ERPNext Technical Forum” group.
To post to this group, send email to wn...@googlegroups.com.
To unsubscribe from this group, send email to
wnframework+un...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/wnframework?hl=en.


Regards,

Sudev.

Mob: +91 80 1010 8033
Phone: +91 11 4266 5226

su...@gmail.com


You received this message because you are subscribed to the Google
Groups “ERPNext Technical Forum” group.
To post to this group, send email to wn...@googlegroups.com.
To unsubscribe from this group, send email to
wnframework+un...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/wnframework?hl=en.


You received this message because you are subscribed to the Google Groups
“ERPNext Technical Forum” group.
To post to this group, send email to wn...@googlegroups.com.
To unsubscribe from this group, send email to
wnframework+un...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/wnframework?hl=en.


Regards,

Sudev.

Mob: +91 80 1010 8033
Phone: +91 11 4266 5226

su...@gmail.com


Regards,

Sudev.

Mob: +91 80 1010 8033
Phone: +91 11 4266 5226

su...@gmail.com


You received this message because you are subscribed to the Google Groups “ERPNext Technical Forum” group.
To post to this group, send email to wn...@googlegroups.com.
To unsubscribe from this group, send email to wnframework+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.


You received this message because you are subscribed to the Google Groups “ERPNext Technical Forum” group.
To post to this group, send email to wn...@googlegroups.com.
To unsubscribe from this group, send email to wnframework+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.

Hi,


I have uploaded the new gzipped master.sql in the data folder.

You will need to do the following steps to install:
1. gunzip data/master.sql.gz
2. python wnf.py --install <root_password> <new_db_name> data/master.sql

3. Change default database name in defs.py
4. login as administrator, pwd is admin.
5. Go to <url to >index.cgi#!Form/Control Panel/Control Panel
6. Change account_id to your new_db_name
7. Uncheck sync with gateway
8. Save

I guess this should do it. We will make the install easier in coming months.

Thanks,
Anand.

On Sat, Mar 3, 2012 at 11:59 AM, Anand Doshi <an...@iwebnotes.com> wrote:
Hi sudev,

I will put it up by tonight. There were some issues which required repatching and hence the master schema wasnt ready yest.

Thanks,
Anand

Sent from my Sony Ericsson Xperia mini pro

sudev kk <su...@gmail.com> wrote:

>Anand, very sorry to bug you on this, but did you get a chance to update
>the Schema?
>I understand you guys are pretty much occupied, so if you haven't, can you
>please tell me when I can expect this, so that I can plan accordingly.
>
>
>On Thu, Mar 1, 2012 at 12:46 PM, sudev kk <su...@gmail.com> wrote:
>
>>
>> Thanks Anand, that will help a lot!
>> If possible please drop a line once you have done this.
>>
>> Best,
>> Sudev
>>
>> On Thu, Mar 1, 2012 at 12:20 PM, Anand Doshi <an...@iwebnotes.com> wrote:
>>
>>> Hi,
>>>
>>> We will upload the schema file: master.sql.gz by tomorrow.
>>>
>>> Thanks,
>>> Anand.
>>>
>>> On Thu, Mar 1, 2012 at 11:42 AM, sudev kk <su...@gmail.com> wrote:
>>>
>>>>
>>>> Thanks Rushab,
>>>>
>>>> About pulling this, I think I am not so confident to do it (yet), I
>>>> think I will give it sometime to
>>>> get comfortable with the app (and the Language, this is my first Python
>>>> exp), before starting to commit stuff.
>>>>
>>>> And about the Schema, that will be great if you can do this. Please let
>>>> me know when you have this uploaded.
>>>>
>>>> Thanks!
>>>>
>>>>
>>>> On Thu, Mar 1, 2012 at 11:35 AM, Rushabh Mehta <rm...@gmail.com> wrote:
>>>>
>>>>> You are right.
>>>>>
>>>>> it should be compared with webnotes.utils.nowdate()
>>>>>
>>>>> In fact datetime.datetime.now should never be used in business logic.
>>>>>
>>>>> You want to fix it and do a pull request?
>>>>>
>>>>> btw, I don't know if Anand has uploaded it but he was going to commit a
>>>>> patched schema file.
>>>>>
>>>>> - Rushabh
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------
>>>>> ERPNext - World's most affordable ERP.
>>>>>
>>>>> W: https://erpnext.com
>>>>> T: @rushabh_mehta
>>>>>
>>>>> On 01-Mar-2012, at 11:14 AM, Dev wrote:
>>>>>
>>>>> Hi All,
>>>>>
>>>>> It looks like Timezone s are not properly managed throughout the
>>>>> application.
>>>>> While trying to mark the attendance for the current day it says
>>>>> "Attendance cannot be marked for future days".
>>>>>
>>>>> It looks like the *validate_att_date* method works on a different
>>>>> timezone than the one set in defs.py, (though everywhere else the date/time
>>>>> displayed is good) Or am I missing to make any other configuration
>>>>> somewhere else?
>>>>>
>>>>> Thanks.
>>>>>
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "ERPNext Technical Forum" group.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msg/wnframework/-/7-Wfe8orkaYJ.
>>>>> To post to this group, send email to wn...@googlegroups.com.
>>>>> To unsubscribe from this group, send email to
>>>>> wnframework+un...@googlegroups.com.
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/wnframework?hl=en.
>>>>>
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "ERPNext Technical Forum" group.
>>>>> To post to this group, send email to wn...@googlegroups.com.
>>>>> To unsubscribe from this group, send email to
>>>>> wnframework+un...@googlegroups.com.
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/wnframework?hl=en.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>>
>>>> Sudev.
>>>>
>>>> Mob: +91 80 1010 8033
>>>> Phone: +91 11 4266 5226
>>>>
>>>> su...@gmail.com
>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "ERPNext Technical Forum" group.
>>>> To post to this group, send email to wn...@googlegroups.com.
>>>> To unsubscribe from this group, send email to
>>>> wnframework+un...@googlegroups.com.
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/wnframework?hl=en.
>>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "ERPNext Technical Forum" group.
>>> To post to this group, send email to wn...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> wnframework+un...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/wnframework?hl=en.
>>>
>>
>>
>>
>> --
>> Regards,
>>
>> Sudev.
>>
>> Mob: +91 80 1010 8033
>> Phone: +91 11 4266 5226
>>
>> su...@gmail.com
>>
>>
>>
>
>
>--
>Regards,
>
>Sudev.
>
>Mob: +91 80 1010 8033
>Phone: +91 11 4266 5226
>
>su...@gmail.com
>
>--
>You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.
>To post to this group, send email to wn...@googlegroups.com.
>To unsubscribe from this group, send email to wnframework+un...@googlegroups.com.
>For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.
>



sudev kk <su...@gmail.com> wrote:



Anand, very sorry to bug you on this, but did you get a chance to update the Schema?
I understand you guys are pretty much occupied, so if you haven't, can you please tell me when I can expect this, so that I can plan accordingly.


On Thu, Mar 1, 2012 at 12:46 PM, sudev kk <su...@gmail.com> wrote:

Thanks Anand, that will help a lot!
If possible please drop a line once you have done this.

Best,
Sudev

On Thu, Mar 1, 2012 at 12:20 PM, Anand Doshi <an...@iwebnotes.com> wrote:
Hi,

We will upload the schema file: master.sql.gz by tomorrow.

Thanks,
Anand.

On Thu, Mar 1, 2012 at 11:42 AM, sudev kk <su...@gmail.com> wrote:

Thanks Rushab,

About pulling this, I think I am not so confident to do it (yet), I think I will give it sometime to
get comfortable with the app (and the Language, this is my first Python exp), before starting to commit stuff.

And about the Schema, that will be great if you can do this. Please let me know when you have this uploaded.

Thanks!


On Thu, Mar 1, 2012 at 11:35 AM, Rushabh Mehta <rm...@gmail.com> wrote:
You are right.

it should be compared with webnotes.utils.nowdate()

In fact datetime.datetime.now should never be used in business logic.

You want to fix it and do a pull request?

btw, I don't know if Anand has uploaded it but he was going to commit a patched schema file.

- Rushabh



---------------------------------------------------------

ERPNext - World's most affordable ERP.

W: https://erpnext.com
T: @rushabh_mehta


On 01-Mar-2012, at 11:14 AM, Dev wrote:

Hi All,

It looks like Timezone s are not properly managed throughout the application.
While trying to mark the attendance for the current day it says "Attendance cannot be marked for future days".

It looks like the validate_att_date method works on a different timezone than the one set in defs.py, (though everywhere else the date/time displayed is good) Or am I missing to make any other configuration somewhere else?

Thanks.




You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To view this discussion on the web visit https://groups.google.com/d/msg/wnframework/-/7-Wfe8orkaYJ.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




--
Regards,

Sudev.

Mob: +91 80 1010 8033




You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




--
Regards,

Sudev.

Mob: +91 80 1010 8033




--
Regards,

Sudev.

Mob: +91 80 1010 8033

Phone: +91 11 4266 5226

su…@gmail.com




You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.


Anand, very sorry to bug you on this, but did you get a chance to update

the Schema?

I understand you guys are pretty much occupied, so if you haven't, can you

please tell me when I can expect this, so that I can plan accordingly.





On Thu, Mar 1, 2012 at 12:46 PM, sudev kk <su…@gmail.com> wrote:



>

> Thanks Anand, that will help a lot!

> If possible please drop a line once you have done this.

>

> Best,

> Sudev

>

> On Thu, Mar 1, 2012 at 12:20 PM, Anand Doshi <an…@iwebnotes.com> wrote:

>

>> Hi,

>>

>> We will upload the schema file: master.sql.gz by tomorrow.

>>

>> Thanks,

>> Anand.

>>

>> On Thu, Mar 1, 2012 at 11:42 AM, sudev kk <su…@gmail.com> wrote:

>>

>>>

>>> Thanks Rushab,

>>>

>>> About pulling this, I think I am not so confident to do it (yet), I

>>> think I will give it sometime to

>>> get comfortable with the app (and the Language, this is my first Python

>>> exp), before starting to commit stuff.

>>>

>>> And about the Schema, that will be great if you can do this. Please let

>>> me know when you have this uploaded.

>>>

>>> Thanks!

>>>

>>>

>>> On Thu, Mar 1, 2012 at 11:35 AM, Rushabh Mehta <rm…@gmail.com> wrote:

>>>

>>>> You are right.

>>>>

>>>> it should be compared with webnotes.utils.nowdate()

>>>>

>>>> In fact datetime.datetime.now should never be used in business logic.

>>>>

>>>> You want to fix it and do a pull request?

>>>>

>>>> btw, I don't know if Anand has uploaded it but he was going to commit a

>>>> patched schema file.

>>>>

>>>> - Rushabh

>>>>

>>>>

>>>>

>>>> ---------------------------------------------------------

>>>> ERPNext - World's most affordable ERP.

>>>>

>>>> W: https://erpnext.com

>>>> T: @rushabh_mehta

>>>>

>>>> On 01-Mar-2012, at 11:14 AM, Dev wrote:

>>>>

>>>> Hi All,

>>>>

>>>> It looks like Timezone s are not properly managed throughout the

>>>> application.

>>>> While trying to mark the attendance for the current day it says

>>>> "Attendance cannot be marked for future days".

>>>>

>>>> It looks like the validate_att_date method works on a different

>>>> timezone than the one set in defs.py, (though everywhere else the date/time

>>>> displayed is good) Or am I missing to make any other configuration

>>>> somewhere else?

>>>>

>>>> Thanks.

>>>>

>>>>

>>>> –

>>>> You received this message because you are subscribed to the Google

>>>> Groups "ERPNext Technical Forum" group.

>>>> To view this discussion on the web visit

>>>> https://groups.google.com/d/msg/wnframework/-/7-Wfe8orkaYJ.

>>>> To post to this group, send email to wn…@googlegroups.com.

>>>> To unsubscribe from this group, send email to

>>>> wnframework+un…@googlegroups.com.

>>>> For more options, visit this group at

>>>> http://groups.google.com/group/wnframework?hl=en.

>>>>

>>>>

>>>> –

>>>> You received this message because you are subscribed to the Google

>>>> Groups "ERPNext Technical Forum" group.

>>>> To post to this group, send email to wn…@googlegroups.com.

>>>> To unsubscribe from this group, send email to

>>>> wnframework+un…@googlegroups.com.

>>>> For more options, visit this group at

>>>> http://groups.google.com/group/wnframework?hl=en.

>>>>

>>>

>>>

>>>

>>> –

>>> Regards,

>>>

>>> Sudev.

>>>

>>> Mob: +91 80 1010 8033

>>> Phone: +91 11 4266 5226

>>>

>>> su…@gmail.com

>>>

>>>

>>> –

>>> You received this message because you are subscribed to the Google

>>> Groups "ERPNext Technical Forum" group.

>>> To post to this group, send email to wn…@googlegroups.com.

>>> To unsubscribe from this group, send email to

>>> wnframework+un…@googlegroups.com.

>>> For more options, visit this group at

>>> http://groups.google.com/group/wnframework?hl=en.

>>>

>>

>> –

>> You received this message because you are subscribed to the Google Groups

>> "ERPNext Technical Forum" group.

>> To post to this group, send email to wn…@googlegroups.com.

>> To unsubscribe from this group, send email to

>> wnframework+un…@googlegroups.com.

>> For more options, visit this group at

>> http://groups.google.com/group/wnframework?hl=en.

>>

>

>

>

> –

> Regards,

>

> Sudev.

>

> Mob: +91 80 1010 8033

> Phone: +91 11 4266 5226

>

> su…@gmail.com

>

>

>







Regards,



Sudev.



Mob: +91 80 1010 8033

Phone: +91 11 4266 5226



su…@gmail.com





You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.







You received this message because you are subscribed to the Google Groups “ERPNext Technical Forum” group.

To post to this group, send email to wn...@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.


Thank you Anand!

On Mon, Mar 5, 2012 at 12:18 AM, Anand Doshi <an...@iwebnotes.com> wrote:
Hi,

I have uploaded the new gzipped master.sql in the data folder.

You will need to do the following steps to install:
1. gunzip data/master.sql.gz
2. python wnf.py --install <root_password> <new_db_name> data/master.sql
3. Change default database name in defs.py
4. login as administrator, pwd is admin.
5. Go to <url to >index.cgi#!Form/Control Panel/Control Panel
6. Change account_id to your new_db_name
7. Uncheck sync with gateway
8. Save

I guess this should do it. We will make the install easier in coming months.

Thanks,
Anand.

On Sat, Mar 3, 2012 at 11:59 AM, Anand Doshi <an...@iwebnotes.com> wrote:
Hi sudev,

I will put it up by tonight. There were some issues which required repatching and hence the master schema wasnt ready yest.

Thanks,
Anand

Sent from my Sony Ericsson Xperia mini pro

sudev kk <su...@gmail.com> wrote:

>Anand, very sorry to bug you on this, but did you get a chance to update
>the Schema?
>I understand you guys are pretty much occupied, so if you haven't, can you
>please tell me when I can expect this, so that I can plan accordingly.
>
>
>On Thu, Mar 1, 2012 at 12:46 PM, sudev kk <su...@gmail.com> wrote:
>
>>
>> Thanks Anand, that will help a lot!
>> If possible please drop a line once you have done this.
>>
>> Best,
>> Sudev
>>
>> On Thu, Mar 1, 2012 at 12:20 PM, Anand Doshi <an...@iwebnotes.com> wrote:
>>
>>> Hi,
>>>
>>> We will upload the schema file: master.sql.gz by tomorrow.
>>>
>>> Thanks,
>>> Anand.
>>>
>>> On Thu, Mar 1, 2012 at 11:42 AM, sudev kk <su...@gmail.com> wrote:
>>>
>>>>
>>>> Thanks Rushab,
>>>>
>>>> About pulling this, I think I am not so confident to do it (yet), I
>>>> think I will give it sometime to
>>>> get comfortable with the app (and the Language, this is my first Python
>>>> exp), before starting to commit stuff.
>>>>
>>>> And about the Schema, that will be great if you can do this. Please let
>>>> me know when you have this uploaded.
>>>>
>>>> Thanks!
>>>>
>>>>
>>>> On Thu, Mar 1, 2012 at 11:35 AM, Rushabh Mehta <rm...@gmail.com> wrote:
>>>>
>>>>> You are right.
>>>>>
>>>>> it should be compared with webnotes.utils.nowdate()
>>>>>
>>>>> In fact datetime.datetime.now should never be used in business logic.
>>>>>
>>>>> You want to fix it and do a pull request?
>>>>>
>>>>> btw, I don't know if Anand has uploaded it but he was going to commit a
>>>>> patched schema file.
>>>>>
>>>>> - Rushabh
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------
>>>>> ERPNext - World's most affordable ERP.
>>>>>
>>>>> W: https://erpnext.com
>>>>> T: @rushabh_mehta
>>>>>
>>>>> On 01-Mar-2012, at 11:14 AM, Dev wrote:
>>>>>
>>>>> Hi All,
>>>>>
>>>>> It looks like Timezone s are not properly managed throughout the
>>>>> application.
>>>>> While trying to mark the attendance for the current day it says
>>>>> "Attendance cannot be marked for future days".
>>>>>
>>>>> It looks like the *validate_att_date* method works on a different
>>>>> timezone than the one set in defs.py, (though everywhere else the date/time
>>>>> displayed is good) Or am I missing to make any other configuration
>>>>> somewhere else?
>>>>>
>>>>> Thanks.
>>>>>
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "ERPNext Technical Forum" group.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msg/wnframework/-/7-Wfe8orkaYJ.
>>>>> To post to this group, send email to wn...@googlegroups.com.
>>>>> To unsubscribe from this group, send email to
>>>>> wnframework+un...@googlegroups.com.
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/wnframework?hl=en.
>>>>>
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "ERPNext Technical Forum" group.
>>>>> To post to this group, send email to wn...@googlegroups.com.
>>>>> To unsubscribe from this group, send email to
>>>>> wnframework+un...@googlegroups.com.
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/wnframework?hl=en.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>>
>>>> Sudev.
>>>>
>>>> Mob: +91 80 1010 8033
>>>> Phone: +91 11 4266 5226
>>>>
>>>> su...@gmail.com
>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "ERPNext Technical Forum" group.
>>>> To post to this group, send email to wn...@googlegroups.com.
>>>> To unsubscribe from this group, send email to
>>>> wnframework+un...@googlegroups.com.
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/wnframework?hl=en.
>>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "ERPNext Technical Forum" group.
>>> To post to this group, send email to wn...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> wnframework+un...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/wnframework?hl=en.
>>>
>>
>>
>>
>> --
>> Regards,
>>
>> Sudev.
>>
>> Mob: +91 80 1010 8033
>> Phone: +91 11 4266 5226
>>
>> su...@gmail.com
>>
>>
>>
>
>
>--
>Regards,
>
>Sudev.
>
>Mob: +91 80 1010 8033
>Phone: +91 11 4266 5226
>
>su...@gmail.com
>
>--
>You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.
>To post to this group, send email to wn...@googlegroups.com.
>To unsubscribe from this group, send email to wnframework+un...@googlegroups.com.
>For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.
>



sudev kk <su...@gmail.com> wrote:



Anand, very sorry to bug you on this, but did you get a chance to update the Schema?
I understand you guys are pretty much occupied, so if you haven't, can you please tell me when I can expect this, so that I can plan accordingly.


On Thu, Mar 1, 2012 at 12:46 PM, sudev kk <su...@gmail.com> wrote:

Thanks Anand, that will help a lot!
If possible please drop a line once you have done this.

Best,
Sudev

On Thu, Mar 1, 2012 at 12:20 PM, Anand Doshi <an...@iwebnotes.com> wrote:
Hi,

We will upload the schema file: master.sql.gz by tomorrow.

Thanks,
Anand.

On Thu, Mar 1, 2012 at 11:42 AM, sudev kk <su...@gmail.com> wrote:

Thanks Rushab,

About pulling this, I think I am not so confident to do it (yet), I think I will give it sometime to
get comfortable with the app (and the Language, this is my first Python exp), before starting to commit stuff.

And about the Schema, that will be great if you can do this. Please let me know when you have this uploaded.

Thanks!


On Thu, Mar 1, 2012 at 11:35 AM, Rushabh Mehta <rm...@gmail.com> wrote:
You are right.

it should be compared with webnotes.utils.nowdate()

In fact datetime.datetime.now should never be used in business logic.

You want to fix it and do a pull request?

btw, I don't know if Anand has uploaded it but he was going to commit a patched schema file.

- Rushabh



---------------------------------------------------------

ERPNext - World's most affordable ERP.

W: https://erpnext.com
T: @rushabh_mehta


On 01-Mar-2012, at 11:14 AM, Dev wrote:

Hi All,

It looks like Timezone s are not properly managed throughout the application.
While trying to mark the attendance for the current day it says "Attendance cannot be marked for future days".

It looks like the validate_att_date method works on a different timezone than the one set in defs.py, (though everywhere else the date/time displayed is good) Or am I missing to make any other configuration somewhere else?

Thanks.




You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To view this discussion on the web visit https://groups.google.com/d/msg/wnframework/-/7-Wfe8orkaYJ.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




--
Regards,


Sudev.

Mob: +91 80 1010 8033





You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.



You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.


Anand, very sorry to bug you on this, but did you get a chance to update

the Schema?

I understand you guys are pretty much occupied, so if you haven't, can you

please tell me when I can expect this, so that I can plan accordingly.





On Thu, Mar 1, 2012 at 12:46 PM, sudev kk <su…@gmail.com> wrote:



>

> Thanks Anand, that will help a lot!

> If possible please drop a line once you have done this.

>

> Best,

> Sudev

>

> On Thu, Mar 1, 2012 at 12:20 PM, Anand Doshi <an…@iwebnotes.com> wrote:

>

>> Hi,

>>

>> We will upload the schema file: master.sql.gz by tomorrow.

>>

>> Thanks,

>> Anand.

>>

>> On Thu, Mar 1, 2012 at 11:42 AM, sudev kk <su…@gmail.com> wrote:

>>

>>>

>>> Thanks Rushab,

>>>

>>> About pulling this, I think I am not so confident to do it (yet), I

>>> think I will give it sometime to

>>> get comfortable with the app (and the Language, this is my first Python

>>> exp), before starting to commit stuff.

>>>

>>> And about the Schema, that will be great if you can do this. Please let

>>> me know when you have this uploaded.

>>>

>>> Thanks!

>>>

>>>

>>> On Thu, Mar 1, 2012 at 11:35 AM, Rushabh Mehta <rm…@gmail.com> wrote:

>>>

>>>> You are right.

>>>>

>>>> it should be compared with webnotes.utils.nowdate()

>>>>

>>>> In fact datetime.datetime.now should never be used in business logic.

>>>>

>>>> You want to fix it and do a pull request?

>>>>

>>>> btw, I don't know if Anand has uploaded it but he was going to commit a

>>>> patched schema file.

>>>>

>>>> - Rushabh

>>>>

>>>>

>>>>

>>>> ---------------------------------------------------------

>>>> ERPNext - World's most affordable ERP.

>>>>

>>>> W: https://erpnext.com

>>>> T: @rushabh_mehta

>>>>

>>>> On 01-Mar-2012, at 11:14 AM, Dev wrote:

>>>>

>>>> Hi All,

>>>>

>>>> It looks like Timezone s are not properly managed throughout the

>>>> application.

>>>> While trying to mark the attendance for the current day it says

>>>> "Attendance cannot be marked for future days".

>>>>

>>>> It looks like the validate_att_date method works on a different

>>>> timezone than the one set in defs.py, (though everywhere else the date/time

>>>> displayed is good) Or am I missing to make any other configuration

>>>> somewhere else?

>>>>

>>>> Thanks.

>>>>

>>>>

>>>> –

>>>> You received this message because you are subscribed to the Google

>>>> Groups "ERPNext Technical Forum" group.

>>>> To view this discussion on the web visit

>>>> https://groups.google.com/d/msg/wnframework/-/7-Wfe8orkaYJ.

>>>> To post to this group, send email to wn…@googlegroups.com.

>>>> To unsubscribe from this group, send email to

>>>> wnframework+un…@googlegroups.com.

>>>> For more options, visit this group at

>>>> http://groups.google.com/group/wnframework?hl=en.

>>>>

>>>>

>>>> –

>>>> You received this message because you are subscribed to the Google

>>>> Groups "ERPNext Technical Forum" group.

>>>> To post to this group, send email to wn…@googlegroups.com.

>>>> To unsubscribe from this group, send email to

>>>> wnframework+un…@googlegroups.com.

>>>> For more options, visit this group at

>>>> http://groups.google.com/group/wnframework?hl=en.

>>>>

>>>

>>>

>>>

>>> –

>>> Regards,

>>>

>>> Sudev.

>>>

>>> Mob: +91 80 1010 8033

>>> Phone: +91 11 4266 5226

>>>

>>> su…@gmail.com

>>>

>>>

>>> –

>>> You received this message because you are subscribed to the Google

>>> Groups "ERPNext Technical Forum" group.

>>> To post to this group, send email to wn…@googlegroups.com.

>>> To unsubscribe from this group, send email to

>>> wnframework+un…@googlegroups.com.

>>> For more options, visit this group at

>>> http://groups.google.com/group/wnframework?hl=en.

>>>

>>

>> –

>> You received this message because you are subscribed to the Google Groups

>> "ERPNext Technical Forum" group.

>> To post to this group, send email to wn…@googlegroups.com.

>> To unsubscribe from this group, send email to

>> wnframework+un…@googlegroups.com.

>> For more options, visit this group at

>> http://groups.google.com/group/wnframework?hl=en.

>>

>

>

>

> –

> Regards,

>

> Sudev.

>

> Mob: +91 80 1010 8033

> Phone: +91 11 4266 5226

>

> su…@gmail.com

>

>

>







Regards,



Sudev.



Mob: +91 80 1010 8033

Phone: +91 11 4266 5226



su…@gmail.com





You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.







You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.

To post to this group, send email to wn…@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un…@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




--
Regards,

Sudev.

Mob: +91 80 1010 8033
Phone: +91 11 4266 5226

su...@gmail.com




You received this message because you are subscribed to the Google Groups “ERPNext Technical Forum” group.

To post to this group, send email to wn...@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.

Hi, Still facing this issue in the latest version.

Can you post on a new topic with details of the “issue”