Страница 1 из 1
не могу понять насчет времени...

Добавлено:
12 май 2007, 09:54
Урал
Time zone string: "PLT-5"
DST status: ON
DST start: Sunday, 30 March 2008 2:00:00 PLT
DST end: Sunday, 28 October 2007 2:00:00 <?>
Time synchronization is active.
Time is synchronized to the network.
Saturday, 12 May 2007 5:50:47 UTC
Saturday, 12 May 2007 11:50:47 <?>
Вроде бы настроено, перегружаю сервер: получаю:
DST start: пусто
DST end: пусто
у клиентов время убегает на час назад.
В autoexec.ncf есть записи:
SET Time Zone = PLT-5
SET DEFAULT TIME SERVER TYPE=PRIMARY
SET DayLight Savings Time Offset =1:00:00
SET Start DayLight Savings Time =(March Sunday Last 2:00:00 AM)
SET End DayLight Savings Time =(October Sunday Last 2:00:00 AM)
сервер NW 6.5 SP6.
Что не так? Почему стираются DST start и DST end?

Добавлено:
12 май 2007, 12:58
Савельев Сергей
Меня несколько смущает приведённая тут Вами временная зона
у меня "EAT-3EATD" (Моск. время)
исходя из моей временной зоны, у Вас ещё что-то должно быть после 5
возможно, что ваша зона должна иметь вид "PLT-5PLTD"
если в сети несколько серверов, то имеет смысл посмотреть на других серверах

Добавлено:
14 май 2007, 06:36
Урал
Название зоны выбрал при установке NW. У нас зона Екатеринбург. Да и полистав форум, я понял так что буквы там не столь важны, как цифры... И в сети он единственный сервер Novell.

Добавлено:
14 май 2007, 12:25
АлександрСмирнов
Сталкнулся с такой же проблемой, если выбирать зону +3 (Москва) то есть возможность выбрать переход на летнее время и имя временных зон пришется правильно. Если выбираем для Екатеринбурга +5 то галочка переход на летнее время не активна и имя зоны ставится не правильно SET Time Zone = PLT-5
После установки сервера я обычно руками правлю autoexec.ncf (беру настройки со старого сервера)
ставлю
#SET Time Zone = PLT-5
SET TIME ZONE = EBG-5EBGD
SET DAYLIGHT SAVINGS TIME OFFSET = 1:00:00
SET START OF DAYLIGHT SAVINGS TIME = (MARCH SUNDAY LAST 2:00:00 AM)
SET END OF DAYLIGHT SAVINGS TIME = (OCTOBER SUNDAY LAST 2:00:00 AM)

Добавлено:
14 май 2007, 13:33
Константин Ошмян
Присоединяюсь к предыдущим ораторам: после аббревиатуры часового пояса и смещения от Гринвича необходима ещё одна аббревиатура - название этого часового пояса при включенном летнем времени. Т.е. в Вашем случае - на просто
- Код: Выделить всё
Time zone string: "PLT-5"
, а что-то вроде
- Код: Выделить всё
Time zone string: "PLT-5PLD"
Совершенно справедливо, что не столь важны конкретные буквы, сколь их наличие в правильном месте


Добавлено:
14 май 2007, 13:56
Charles Kludge
2 Урал: Курим мануал:
---<cut>---
(c) Copyright 1983-1996 Novell, Inc.
Purpose:
Use at the server console to configure time zone information.
WARNING: Because time synchronization between servers is critical to NetWare
Directory Services, make sure you understand time synchronization before you
change the time or time zone on a server. (For more information, see
"Maintaining Network Time Synchronization" in Chapter 4 of Supervising the
Network.
Syntax:
SET TIME ZONE zone [+|-] hr:min:sec [daylight]
Parameters:
(no parameter) Display time zone setting.
zone Specify a standard abbreviation for the name of the time zone.
Examples:EST (Eastern Standard Time)CST (Central Standard Time)
MST (Mountain Standard Time)PST (Pacific Standard Time)
[+ | - ] Specify the number of hours east or west of the Coordinated
Universal Time (UTC) meridian. Note: UTC has been known
historically as Greenwich Mean Time or GMT. Use + (plus)
to set time zones west of UTC.Use - (minus) to set time zones
east of UTC. (If you don't enter this parameter, the default is +.)
hr:min:sec Specify the time difference between UTC and the local time zone.
You can specify this difference simply in hours. Or, for extreme
accuracy, specify hours, minutes and seconds.Examples:EST is 5 hours
west of UTC; CST is 6 hours west; MST is 7 hours west;
PST is 8 hours west.
daylight Specify the standard abbreviation for the time zone during
Daylight Saving Time (DST).Don't enter this abbreviation if
you don't observe DST. Examples:EDT (Eastern Daylight Time)
CDT (Central Daylight Time)MDT (Mountain Daylight Time)
PDT (Pacific Daylight Time)Important: This parameter does not
turn on Daylight Saving Time. You turn on Daylight Saving Time
(and configure related parameters) by using the SET command.
Using SET TIME ZONE
Time zone information is critical to time synchronization for NetWare Directory
Services. Additionally, time zone information is provided to modules that make
calls to CLIB and related modules.
You specify the abbreviation the operating system uses for daylight saving time
with the SET TIME ZONE daylight parameter. You turn on daylight saving time and
set the start and end date with the SET command.
If you don't set the time zone, there are no standard abbreviations and the time
zone offset is zero.
Examples:
To display the time zone setting, type
SET TIME ZONE
To set the time zone to mountain standard time, type
SET TIME ZONE MST7
(This example applies to an area that doesn't observe daylight saving time.)
To set the time zone to Pacific standard time and set the abbreviation for daylight saving time, type
SET TIME ZONE PST8PDT
(When daylight saving time is active, PST will be known as PDT.)
To set the time zone for Germany (Mid-European Time), type
SET TIME ZONE MET-1
The -1 sets the time zone 1 hour ahead of UTC, since Germany is 1 hour east
of the UTC meridian.
---<cut>---
Additions:
To set the time zone for Central Europe(Belorussia, Ukraine, Poland, Baltics, etc.)
(Central-European Time, GMT+2), type
SET TIME ZONE CET-2CDT
To set the time zone for Eastern Europe(North-West Russia, Moscow, Vologograd, etc.)
(Eastern-European Time, GMT+3), type
SET TIME ZONE EET-3EDT
SET TIME ZONE MSK-3MSD (Moscow)
SET TIME ZONE SPB-3SPD (SPb)
Ensure that workstation TZ variable is set(same as in SET TIME ZONE):
SET TZ = timezone
(in AUTOEXEC.BAT)
or
DOS SET TZ="timezone"
(in login script)
---
Т.е. Савельев Сергей был прав - вы не указали аббревиатуру для
декретного/летнего времени. Мои настройки(боевой сервер):
---
set Time Zone = SPB-3SPD
set Daylight Savings Time Offset = 1:00:00
set Start Of Daylight Savings Time = (APRIL SUNDAY FIRST 2:00:00 AM)
set End Of Daylight Savings Time = (OCTOBER SUNDAY LAST 3:00:00 AM)
set Default Time Server Type = PRIMARY
---
Именно 3:00:00, т.к. переход на зимнее время считается по локалу,
а локальное время-то на час вперед...
---
container login script:
DOS SET TZ="SPB-3SPD"

Добавлено:
16 май 2007, 08:32
Урал
Указал Time zone string: "PLT-5PLTD"
Перегрузил сервер, получаю:
----------------------------------------------------
Time zone string: "PLT-5PLTD"
DST status: OFF
DST start: not set
DST end: not set
Time synchronization is active.
Time is synchronized to the network.
Wednesday, 16 May 2007 4:11:42 UTC
Wednesday, 16 May 2007 9:11:42 PLT
----------------------------------------------------
а вот строки из autoexec.ncf
SET Time Zone = PLT-5PLTD
SET DEFAULT TIME SERVER TYPE=PRIMARY
SET DayLight Savings Time Offset =1:00:00
SET Start DayLight Savings Time =(March Sunday Last 2:00:00 AM)
SET End DayLight Savings Time =(October Sunday Last 2:00:00 AM)
Почему же опять
DST status: OFF
DST start: not set
DST end: not set
??????????????

Добавлено:
16 май 2007, 08:54
Сулейменов Олжас
парсер не могет быть чувствителен к синтаксису?
что, если отдельить знак = пробелами с обеих сторон?
как я понимаю, даже без указания временной зоны переход должен осуществляться?

Добавлено:
16 май 2007, 11:39
Урал
Я все эти ЗЕТы предварительно ввожу через Monitor, он их принимает. Все существует и работает до перезагрузки. Может их вообще закомментировать в аутоехес.нсф?

Добавлено:
16 май 2007, 11:47
Савельев Сергей
точную копию SET'ов, тех что вводили с консоли нужно продублировать и в AUTOEXEC.NCF
и будет Вам счастье

Добавлено:
16 май 2007, 12:06
Константин Ошмян
Урал писал(а):а вот строки из autoexec.ncf
SET Time Zone = PLT-5PLTD
SET DEFAULT TIME SERVER TYPE=PRIMARY
SET DayLight Savings Time Offset =1:00:00
SET Start DayLight Savings Time =(March Sunday Last 2:00:00 AM)
SET End DayLight Savings Time =(October Sunday Last 2:00:00 AM)
Почему же опять
DST status: OFF
DST start: not set
DST end: not set
??????????????
На моих серверах эти команды выглядят чуть по-другому:
set Daylight Savings Time Offset = 1:00:00
set Start Of Daylight Savings Time = (...)
set End Of Daylight Savings Time = (...)
И если регистр букв, как мне кажется, не важен, то пропущенное "of" может оказаться критичным.
Кстати, если попробовать ввести с консоли сервера в точности те команды, которые прописаны в AUTOEXEC-е, то он "съедает" успешно или же ругается?